init
This commit is contained in:
commit
46df79ca2a
10 files changed
+1054
No files matched your search
@@ -0,0 +1,22 @@
|
||||
cmake_minimum_required(VERSION 3.28)
|
||||
project(OpenGL_Practice)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
file(COPY objs/ DESTINATION objs/)
|
||||
file(COPY shaders/ DESTINATION shaders/)
|
||||
|
||||
add_library(glad STATIC include/glad/glad.h include/KHR/khrplatform.h)
|
||||
target_include_directories(glad PUBLIC include)
|
||||
set_target_properties(glad PROPERTIES LINKER_LANGUAGE CXX)
|
||||
|
||||
add_subdirectory(src/glfw-3.4)
|
||||
|
||||
add_executable(main glad.c main.cpp
|
||||
Object3D.cpp
|
||||
Object3D.h
|
||||
Shader.h
|
||||
Camera.h)
|
||||
target_link_libraries(main PUBLIC glfw glad)
|
||||
|
||||
Reference in new issue
Block a user