-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
29 lines (20 loc) · 968 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
cmake_minimum_required(VERSION 3.12)
project(GLCollection)
set(CMAKE_CXX_STANDARD 11)
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
add_subdirectory(${PROJECT_SOURCE_DIR}/libs/glfw)
include_directories(${PROJECT_SOURCE_DIR}/libs)
include_directories(${PROJECT_SOURCE_DIR}/libs/glad/include)
include_directories(${PROJECT_SOURCE_DIR}/libs/stb)
include_directories(${PROJECT_SOURCE_DIR}/libs/LoadOBJ)
file(GLOB_RECURSE GLAD ${PROJECT_SOURCE_DIR}/libs/glad/*.h* ${PROJECT_SOURCE_DIR}/libs/glad/*.c*)
add_executable(cube cube.cpp ${GLAD})
target_link_libraries(cube glfw)
add_executable(screen_quad screen_quad.cpp ${GLAD})
target_link_libraries(screen_quad glfw)
add_executable(screenshot screenshot.cpp ${GLAD})
target_link_libraries(screenshot glfw)
add_executable(visualizing_normals visualizing_normals.cpp ${GLAD})
target_link_libraries(visualizing_normals glfw)