-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (35 loc) · 1013 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
cmake_minimum_required(VERSION 3.5)
SET(CMAKE_EXPORT_COMPILE_COMMANDS 1)
SET(CMAKE_CXX_STANDARD 11)
SET(CMAKE_CXX_STANDARD_REQUIRED True)
# add_compile_definitions(_MY_OPENGL_IS_33_)
project(IGR_Clouds)
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
set(SOURCES
main.cpp
mesh.cpp
shader.cpp
object3d.cpp
camera.hpp
mesh.hpp
shader.hpp
gl_includes.hpp
object3d.hpp
framebuffer.hpp
voxeltexture.hpp
CloudsManager.hpp
scene.hpp
renderer.hpp
)
add_executable(${PROJECT_NAME} ${SOURCES})
target_sources(${PROJECT_NAME} PRIVATE dep/glad/src/glad.c)
target_include_directories(${PROJECT_NAME} PRIVATE dep/glad/include/)
add_subdirectory(dep/glfw)
target_link_libraries(${PROJECT_NAME} glfw)
add_subdirectory(dep/glm)
target_link_libraries(${PROJECT_NAME} glm)
add_subdirectory(dep/imgui)
target_link_libraries(${PROJECT_NAME} IMGUI)
target_link_libraries(${PROJECT_NAME} ${CMAKE_DL_LIBS})