-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (26 loc) · 1.15 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
PROJECT(waypoint_navigation)
cmake_minimum_required(VERSION 2.6)
#add definitions, compiler switches, etc.
ADD_DEFINITIONS(-Wall)
#list all source files here
#ADD_EXECUTABLE(driver main.cpp interface.cpp)
find_package(PkgConfig)
pkg_check_modules(BASE_TYPES REQUIRED "base-types")
INCLUDE_DIRECTORIES(${BASE_TYPES_INCLUDE_DIRS})
LINK_DIRECTORIES(${BASE_TYPES_LIBRARY_DIRS})
INCLUDE_DIRECTORIES(/usr/include/eigen2)
ADD_LIBRARY(waypoint_navigation SHARED WaypointNavigation.cpp)
#TARGET_LINK_LIBRARIES(xsens xsensVendorLib)
#${DFKI_TYPES_LIBS})
#need to link to some other libraries ? just add them here
#TARGET_LINK_LIBRARIES(driver png jpeg)
ADD_EXECUTABLE(WaypointNavigationTest WaypointNavigationTest.cpp)
TARGET_LINK_LIBRARIES(WaypointNavigationTest waypoint_navigation)
CONFIGURE_FILE(Doxyfile.in Doxyfile @ONLY)
ADD_CUSTOM_TARGET(doc doxygen Doxyfile)
INSTALL(TARGETS waypoint_navigation
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib)
INSTALL(FILES WaypointNavigation.hpp DESTINATION include)
CONFIGURE_FILE(waypoint_navigation.pc.in waypoint_navigation.pc @ONLY)
INSTALL(FILES ${CMAKE_BINARY_DIR}/waypoint_navigation.pc DESTINATION lib/pkgconfig)