-
Notifications
You must be signed in to change notification settings - Fork 15
/
CMakeLists.txt
44 lines (36 loc) · 1.14 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
cmake_minimum_required(VERSION 3.8)
include(version.cmake)
include("standard/Standard.cmake")
project(Autowiring VERSION ${autowiring_VERSION})
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake-modules")
include(AddPCH)
include(ConditionalSources)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# We have unit test projects via googletest, they're added in the places where they are defined
enable_testing()
# Autoboost headers required everywhere but on MSVC 2015+, which doesn't rely on filesystem
if(NOT MSVC OR MSVC_VERSION LESS 1900)
install(
DIRECTORY ${PROJECT_SOURCE_DIR}/contrib/autoboost/autoboost
DESTINATION include
COMPONENT autowiring
)
endif()
# Enable conformance mode for newer versions of MSVC
if(MSVC_VERSION GREATER 1910)
string(APPEND CMAKE_CXX_FLAGS " /permissive-")
endif()
add_definitions(-DGTEST_HAS_TR1_TUPLE=0)
# Recurse through source directories
include_directories(
contrib
contrib/websocketpp
)
add_subdirectory(contrib)
add_subdirectory(src)
# Now we can generate the version and install stuff
generate_version()
combined_installer(
VENDOR "Leap Motion"
CONTACT "[email protected]"
)