forked from Asunaya/RefinedGunz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
52 lines (45 loc) · 1.41 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
cmake_minimum_required(VERSION 2.8)
enable_testing()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
include(macros)
if(MSVC)
ucm_add_flags(/Zi)
ucm_add_linker_flags(EXE CONFIG Release /DEBUG /OPT:REF /OPT:ICF)
ucm_add_linker_flags(/ignore:4099 /ignore:4221)
ucm_add_flags(-D_WINSOCK_DEPRECATED_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS)
else()
ucm_add_flags(-g -fno-strict-aliasing -fno-strict-overflow -fwrapv)
ucm_add_flags(CXX --std=c++14)
endif()
add_project_subdir(sdk/zlib)
add_project_subdir(sdk/curl)
add_project_subdir(sdk/libsodium)
add_project_subdir(sdk/rapidxml)
add_project_subdir(sdk/sqlite)
add_project_subdir(sdk/ini)
if (WIN32)
add_project_subdir(sdk/bullet)
add_project_subdir(sdk/portaudio)
add_project_subdir(sdk/opus)
add_project_subdir(sdk/imgui)
endif()
set(UCM_UNITY_BUILD ON)
add_project_subdir(cml)
add_project_subdir(launcher)
add_project_subdir(PatchCreator)
add_project_subdir(CSCommon)
add_project_subdir(MDatabase)
add_project_subdir(RealSpace2)
add_project_subdir(SafeUDP)
add_project_subdir(Locator)
add_project_subdir(MatchServer)
add_project_subdir(Tests)
if (WIN32)
add_project_subdir(Mint2)
add_project_subdir(RealSound)
add_project_subdir(Gunz)
add_project_subdir(PartsIndexer)
endif()