forked from griefly/griefly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
55 lines (38 loc) · 1.17 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
47
48
49
50
51
52
53
54
55
cmake_minimum_required(VERSION 3.1)
project(Griefly)
option(BUILD_TESTS "Build tests" OFF)
option(BUILD_COVER "Generate test coverage" OFF)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
# To avoid mark __dllexport/__dllimport all symbols
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
set(UTILS_DIR utils/)
set(EXEC_DIR exec/)
set(KV_INSTALL_PATH "${CMAKE_SOURCE_DIR}/${EXEC_DIR}")
set(MINIMUM_QT_VERSION 5.8)
include(ClangFormat)
include(FilterOutList)
set(CMAKE_INSTALL_RPATH "${KV_INSTALL_PATH}")
# GTEST "search"
if(BUILD_TESTS)
include(GoogleTest)
endif()
# Some variables neeeded by Qt
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
if (MSVC)
add_definitions(/WX)
endif()
# Main game project
add_subdirectory(sources)
# Building launcher
add_subdirectory(utils/launcher)
# Building qzipunpacker
set(SOURCES_PATH "../../sources/")
add_subdirectory(utils/qzip_unpacker)
add_subdirectory(utils/basic_assets_generator)
add_subdirectory(utils/map_editor)
# Building server
set(GOPATH ${CMAKE_CURRENT_SOURCE_DIR}/gopath)
add_subdirectory(${GOPATH}/src/griefly-server)