-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
32 lines (23 loc) · 1014 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
cmake_minimum_required (VERSION 3.8)
project (TDEngine2SDK)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin/$<CONFIGURATION>")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin/$<CONFIGURATION>")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin/$<CONFIGURATION>")
# Global variables are declared here
set(TDENGINE2_LIBRARY_NAME "TDEngine2")
set(TDENGINE2_TESTS_NAME "tests")
SET(CMAKE_DEBUG_POSTFIX "" CACHE STRING "Debug Postfix for lib, samples and tools")
# Global options are declared here
option(IS_PLUGIN_BUILDING_ENABLED "The option shows whether plugins should be built or not" ON)
option(IS_SAMPLES_BUILDING_ENABLED "The option shows whether sample projects should be built or not" ON)
option(IS_TESTING_ENABLED "The option turns on/off tests" ON)
if (IS_TESTING_ENABLED)
enable_testing()
endif ()
add_subdirectory(TDEngine2)
if (IS_SAMPLES_BUILDING_ENABLED)
add_subdirectory(SandboxGame)
endif ()
if (IS_TESTING_ENABLED)
add_subdirectory(tests)
endif ()