-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
41 lines (32 loc) · 943 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
# CMakeList.txt : Top-level CMake project file, do global configuration
# and include sub-projects here.
#
cmake_minimum_required (VERSION 3.8)
project ("CanIChess")
include(CTest)
set (CMAKE_CXX_STANDARD 17)
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64")
include_directories(
"src"
"deps/sfml/include"
"deps/gtest/googletest/include"
"deps/gtest/googlemock/include"
"deps/imgui"
"Deps/imgui-sfml"
)
# Include sub-projects.
add_subdirectory ("src")
add_subdirectory ("test")
set(BUILD_SHARED_LIBS OFF)
set(SFML_BUILD_DOC OFF)
set(SFML_BUILD_EXAMPLES OFF)
add_subdirectory("deps/sfml")
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
add_subdirectory("deps/gtest")
add_subdirectory("deps/imgui")
set(IMGUI_SFML_FIND_SFML OFF)
set(IMGUI_DIR "../imgui")
set(IMGUI_SFML_USE_DEFAULT_CONFIG OFF)
set(IMGUI_SFML_CONFIG_DIR "${CMAKE_CURRENT_LIST_DIR}/src")
set(IMGUI_SFML_CONFIG_NAME "imconfig.h")
add_subdirectory("deps/imgui-sfml")