-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
41 lines (30 loc) · 1012 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
cmake_minimum_required(VERSION 3.15)
project (HARU)
option(USE_SOLUTION_FOLDERS "使用资源管理器文件夹" OFF)
# Solution folders
if(USE_SOLUTION_FOLDERS)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER "HARU")
endif()
# static lib
set(ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib)
# dynamic lib
set(LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib)
# executable file
set(RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
include(Dependencies)
set(CMAKE_GENERATOR_PLATFORM x64)
# Dependencies
#add_subdirectory(Haru/thirdParty/Box2D)
#add_subdirectory(Haru/thirdParty/GLFW)
add_subdirectory(Haru/thirdParty/GLAD)
add_subdirectory(Haru/thirdParty/ImGui)
#add_subdirectory(Haru/thirdParty/yaml-cpp)
# Core
add_subdirectory(Haru)
# Tools
# add_subdirectory()
# Misc
add_subdirectory(Xen)