fixed stb_image.h
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
project(minecraft-clone C)
|
||||
cmake_minimum_required(VERSION 3.9)
|
||||
set( CMAKE_EXPORT_COMPILE_COMMANDS ON )
|
||||
include_directories(lib/glad/include lib/advanced_C_standard_liberary/include include)
|
||||
include_directories(lib/glad/include lib/advanced_C_standard_liberary/include include lib/stb/include)
|
||||
file(GLOB SOURCES "src/*.c" "lib/*/src/*.c")
|
||||
find_program(CCACHE_PROGRAM ccache)
|
||||
add_executable(test.out ${SOURCES})
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -5,7 +5,8 @@
|
||||
#include <GLFW/glfw3.h>
|
||||
#include "main.h"
|
||||
#include <acl/file.h>
|
||||
|
||||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#include <stb_image.h>
|
||||
int main() {
|
||||
if(!glfwInit()) {
|
||||
printf("Faild to initalize GLFW\n");
|
||||
|
||||
Reference in New Issue
Block a user