-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
32 lines (25 loc) · 1008 Bytes
/
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
cmake_minimum_required(VERSION 3.1)
set(PROJECT_NAME xsens_streaming)
set(PROJECT_DESCRIPTION xsens_streaming)
set(PROJECT_VERSION 0.1.0)
set(PROJECT_URL https://github.com/arntanguy/xsens_streaming)
set(PROJECT_DEBUG_POSTFIX "_d")
set(PROJECT_USE_CMAKE_EXPORT TRUE)
set(CXX_DISABLE_WERROR 1)
set(CMAKE_CXX_STANDARD 17)
include(cmake/base.cmake)
include(cmake/cython/cython.cmake)
project(${PROJECT_NAME} LANGUAGES C CXX)
find_package(Boost REQUIRED COMPONENTS program_options)
set(THREADS_PREFER_PTHREAD_FLAG ON)
add_project_dependency(Threads REQUIRED)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules)
find_package(mtsdk REQUIRED COMPONENTS xstypes)
if(NOT ${mtsdk_FOUND})
message(FATAL_ERROR "MTSDK not found. Please install it manually according to the instructions provided in the README: https://github.com/arntanguy/xsens_streaming")
endif()
add_subdirectory(src)
add_subdirectory(CMakeModules)
if(${PYTHON_BINDING})
add_subdirectory(binding/python)
endif()