forked from Quanwei1992/PBR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
41 lines (28 loc) · 1.34 KB
/
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
cmake_minimum_required(VERSION 3.12)
set(CMAKE_CXX_STANDARD 17)
include(cmake/ucm.cmake)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
project(PBR)
add_subdirectory(third_part/glad)
add_subdirectory(third_part/glfw)
add_subdirectory(third_part/stb)
add_subdirectory(third_part/glm)
add_subdirectory(third_part/assimp)
SET_TARGET_PROPERTIES (glad PROPERTIES FOLDER ThirdPart)
SET_TARGET_PROPERTIES (glfw PROPERTIES FOLDER ThirdPart)
SET_TARGET_PROPERTIES (stb PROPERTIES FOLDER ThirdPart)
SET_TARGET_PROPERTIES (assimp PROPERTIES FOLDER ThirdPart)
SET_TARGET_PROPERTIES (assimp_cmd PROPERTIES FOLDER ThirdPart)
#SET_TARGET_PROPERTIES (glm_shared PROPERTIES FOLDER ThirdPart)
SET_TARGET_PROPERTIES (IrrXML PROPERTIES FOLDER ThirdPart)
SET_TARGET_PROPERTIES (uninstall PROPERTIES FOLDER ThirdPart)
SET_TARGET_PROPERTIES (unit PROPERTIES FOLDER ThirdPart)
SET_TARGET_PROPERTIES (UpdateAssimpLibsDebugSymbolsAndDLLs PROPERTIES FOLDER ThirdPart)
SET_TARGET_PROPERTIES (zlib PROPERTIES FOLDER ThirdPart)
SET_TARGET_PROPERTIES (zlibstatic PROPERTIES FOLDER ThirdPart)
add_executable(Demo0 demo/Demo0.cpp)
target_link_libraries(Demo0 PRIVATE glad glfw stb glm assimp)
add_executable(Demo1 demo/Demo1.cpp)
target_link_libraries(Demo1 PRIVATE glad glfw stb glm assimp)
add_executable(Demo2 demo/Demo2.cpp)
target_link_libraries(Demo2 PRIVATE glad glfw stb glm assimp)