-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (36 loc) · 1.02 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
42
43
44
45
46
cmake_minimum_required (VERSION 3.1 FATAL_ERROR)
#proprieties
project(MyG_E)
set (CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH}
"${PROJECT_SOURCE_DIR}/cmake"
)
find_package(GLFW3 REQUIRED)
find_package(ASSIMP REQUIRED)
find_package(irrXML REQUIRED)
find_package(ZLIB REQUIRED)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set (CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MD")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MD")
#includes and directories
#Third Party subdirectory
include_directories (
${ASSIMP_INCLUDE_DIRS}
${GLFW3_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIRS}
${IRRXML_INCLUDE_DIRS}
src/ThirdParty/glad/include
src/ThirdParty/ImGui/include
src/ThirdParty/imstb/include
src/TrirdParty/rapidjson/include
)
add_subdirectory (src/ThirdParty/glad)
add_subdirectory (src/ThirdParty/ImGui)
add_subdirectory (src/ThirdParty/imstb)
add_subdirectory (src/ThirdParty/rapidjson)
#Project subdirectory
include_directories (
src/MyG_E
)
add_subdirectory(src/MyG_E)