-
Notifications
You must be signed in to change notification settings - Fork 34
/
CMakeLists.txt
46 lines (35 loc) · 1.51 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
#------------------------------------------------------------------------------
# CMakeLists.txt
#------------------------------------------------------------------------------
cmake_minimum_required(VERSION 3.6)
project(openminer)
#------------------------------------------------------------------------------
# Setup
#------------------------------------------------------------------------------
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
#------------------------------------------------------------------------------
# Options
#------------------------------------------------------------------------------
option(OM_BUILD_TESTS "Enable building tests if CxxTest is available" ON)
option(GIT_SUBMODULE "Check git submodules during build" ON)
#------------------------------------------------------------------------------
# Additional cmake files
#------------------------------------------------------------------------------
include(compiler_flags)
include(git_submodules)
include(om_target)
include(utils)
#------------------------------------------------------------------------------
# Subdirectories
#------------------------------------------------------------------------------
add_subdirectory(external)
add_subdirectory(resources/shaders)
add_subdirectory(source/common)
add_subdirectory(source/server)
add_subdirectory(source/client)
add_subdirectory(tests)
if (MSVC)
include(vs_folders)
endif()