-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
32 lines (26 loc) · 889 Bytes
/
CMakeLists.txt
File metadata and controls
32 lines (26 loc) · 889 Bytes
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
cmake_minimum_required(VERSION 3.8)
include(version.cmake)
include("standard/Standard.cmake")
project(LeapIPC VERSION ${LeapIPC_VERSION})
include(CTest)
include(CheckTypeSize)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake-modules")
include(AddPCH)
include(ConditionalSources)
# All typically required packages
find_package(autowiring 1.1.0 EXACT REQUIRED)
find_package(leapserial 0.5.2 EXACT REQUIRED)
# We have unit test projects via googletest, they're added in the places where they are defined
add_definitions(-DGTEST_HAS_TR1_TUPLE=0)
enable_testing()
# Recurse through source directories
include_directories(contrib)
add_subdirectory(contrib)
add_subdirectory(src)
# Now we can generate the version and install stuff
generate_version()
combined_installer(
VENDOR "Leap Motion"
CONTACT "cmercenary@gmail.com"
)