-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
52 lines (41 loc) · 1.5 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
#
# The find_package macro for Orocos-RTT works best with
# cmake >= 2.6.3
#
cmake_minimum_required(VERSION 2.6.3)
set(CMAKE_BUILD_TYPE Release)
#
# This creates a standard cmake project. You may extend this file with
# any cmake macro you see fit.
#
project(kuka_mingxing_controller)
# Use 'source orocos_toolchain/env.sh' if the command below fails:
find_package(OROCOS-RTT QUIET)
if (NOT OROCOS-RTT_FOUND)
message (FATAL_ERROR "\nCould not find Orocos. Please use the shell command\n 'source orocos_toolchain/env.sh' and then run cmake again.")
endif()
find_package(PkgConfig REQUIRED)
PKG_CHECK_MODULES(PC_EIGEN eigen_lgsm REQUIRED)
if(NOT PC_EIGEN_FOUND)
message("Failed to detect Eigen, check PKG_CONFIG_PATH." )
endif(NOT PC_EIGEN_FOUND)
PKG_CHECK_MODULES(PC_MINGXINGCONTROLLER MingXingController REQUIRED)
if(NOT PC_MINGXINGCONTROLLER_FOUND)
message("Failed to detect MingXingController, check PKG_CONFIG_PATH." )
endif(NOT PC_MINGXINGCONTROLLER_FOUND)
PKG_CHECK_MODULES(PC_KUKAKDL kukakdl REQUIRED)
if(NOT PC_KUKAKDL_FOUND)
message("Failed to detect kukakdl")
endif(NOT PC_KUKAKDL_FOUND)
# Defines the orocos_* cmake macros. See that file for additional
# documentation.
include( ${OROCOS-RTT_USE_FILE_PATH}/UseOROCOS-RTT.cmake )
# Rest of the configuration is in src/
add_subdirectory( include )
set(CMAKE_CXX_FLAGS "-fpermissive")
add_subdirectory( src )
#
# Generates and installs our package. Must be the last statement such
# that it can pick up all above settings.
#
orocos_generate_package()