-
Notifications
You must be signed in to change notification settings - Fork 50
/
CMakeLists.txt
58 lines (42 loc) · 1.92 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
56
57
58
CMAKE_MINIMUM_REQUIRED(VERSION 3.0 FATAL_ERROR)
CMAKE_POLICY(SET CMP0056 NEW)
IF(DEFINED CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
ELSE()
SET(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
ENDIF()
PROJECT(usvfs)
ENABLE_TESTING()
INCLUDE(${CMAKE_SOURCE_DIR}/StandardSetup.cmake)
INCLUDE(${CMAKE_SOURCE_DIR}/SetupPackage.cmake)
#INCLUDE(cotire)
SET(CMAKE_PREFIX_PATH "${QTDIR}; ${WINSDK_LIB}")
SET(PROJ_VERSION 0.2)
SET(PROJ_AUTHOR Tannin)
SET(PROJ_ARCH x86 CACHE STRING "build architecture, has to be x86 or x64")
ADD_DEFINITIONS(-DUNICODE -D_UNICODE -DASMJIT_STATIC -DPROJ_VERSION="${PROJ_VERSION}")
# optimizations to spdlog
# logger name isn't printed, loggers are created in advance
ADD_DEFINITIONS(-DSPDLOG_NO_NAME -DSPDLOG_NO_REGISTRY_MUTEX)
#ADD_DEFINITIONS(-DBOOST_EXCEPTION_DISABLE -DBOOST_NO_EXCEPTIONS)
SET(default_project_path "${CMAKE_SOURCE_DIR}/..")
GET_FILENAME_COMPONENT(${default_project_path} ${default_project_path} REALPATH)
SET(project_path "${default_project_path}" CACHE PATH "path to the other mo projects")
SET(lib_path "${project_path}/../install/libs")
LINK_DIRECTORIES("${lib_path}")
FIND_PROGRAM(IWYU_PATH NAMES include-what-you-use iwyu PATHS ${project_path}/include-what-you-use/bin)
IF(IWYU_PATH-NOTFOUND)
MESSAGE(STATUS "Could not find the program include-what-you-use")
ENDIF()
ADD_SUBDIRECTORY(shared)
ADD_SUBDIRECTORY(shared_test)
ADD_SUBDIRECTORY(thooklib)
ADD_SUBDIRECTORY(thooklib_test)
ADD_SUBDIRECTORY(tinjectlib)
ADD_SUBDIRECTORY(tinjectlib_test)
ADD_SUBDIRECTORY(testinject_dll)
ADD_SUBDIRECTORY(testinject_bin)
ADD_SUBDIRECTORY(usvfs)
ADD_SUBDIRECTORY(usvfs_test)
ADD_SUBDIRECTORY(usvfs_helper)
ADD_SUBDIRECTORY(usvfs_proxy)