-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
29 lines (22 loc) · 1.29 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
# +====================================================================+
# | Open MObile Robot Architecture (MORA) |
# | |
# | https://github.com/OpenMORA |
# | |
# | Copyright individual authors (C) 2010-14 - See AUTHORS.txt |
# | Project released under BSD License |
# +====================================================================+
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) # Simpler CMake syntax.
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11) # Minimum version required by MOOS v10 cfg files
PROJECT(sensors_pkg)
cmake_policy(SET CMP0003 NEW) # Don't mix rel & abs lib paths
cmake_policy(SET CMP0005 NEW) # Autoescape -D definitions
FIND_PACKAGE(MORA REQUIRED) # Import MOOS vars, MORA CMake macros,etc.
MORA_COMMON_CMAKE() # Set common CMake options
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${${PROJECT_NAME}_SOURCE_DIR}/cmakemodules")
# Add modules (dir names match modules' by default)
DEFINE_MORA_PROGRAM(GenericSensor)
DEFINE_MORA_PROGRAM(IMU_XSens)
DEFINE_MORA_PROGRAM(NIDAQ)
DEFINE_MORA_PROGRAM(PhidgetsEncoders)
DEFINE_MORA_PROGRAM(StereoFlyCap)