-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (29 loc) · 1.25 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
cmake_minimum_required (VERSION 3.8 FATAL_ERROR)
project (AT2_all)
option(BUILD_TESTING "Use GTest" OFF)
option(USE_ASSIMP "Use ASSIMP library" ON)
option(USE_SDL_INSTEADOF_GLFW "When enabled, SDL will be used instead of SFML" OFF)
option(USE_PLATFORM_HACKS "speed-up execution in exchange for some non-portable code" OFF)
# Setup conan packet manager
# Download automatically, you can also just copy the conan.cmake file
if (NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
message (STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan")
file (DOWNLOAD "https://github.com/conan-io/cmake-conan/raw/0.17.0/conan.cmake"
"${CMAKE_BINARY_DIR}/conan.cmake"
TLS_VERIFY ON)
endif()
include (${CMAKE_BINARY_DIR}/conan.cmake)
conan_cmake_run ( CONANFILE conanfile.py
BUILD missing BASIC_SETUP
OPTIONS
"use_sdl = ${USE_SDL_INSTEADOF_GLFW}"
"use_gtest = ${BUILD_TESTING}"
)
add_subdirectory ("src/AT2/")
add_subdirectory ("applications/examples/")
add_subdirectory ("applications/sandbox/")
add_subdirectory ("applications/test_task/")
if(BUILD_TESTING)
message ("Testing enabled")
add_subdirectory("src/Tests")
endif()