forked from lukscasanova/mtig_driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
73 lines (53 loc) · 1.95 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
cmake_minimum_required(VERSION 2.4.6)
project(mtig_driver)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
message_generation
tf
)
add_message_files(
FILES
GpsInfo.msg
)
generate_messages(
DEPENDENCIES
std_msgs
)
catkin_package(
INCLUDE_DIRS include
LIBRARIES ${PROJECT_NAME}
CATKIN_DEPENDS roscpp tf
DEPENDS message_runtime
)
# Set the build type. Options are:
# Coverage : w/ debug symbols, w/o optimization, w/ code-coverage
# Debug : w/ debug symbols, w/o optimization
# Release : w/o debug symbols, w/ optimization
# RelWithDebInfo : w/ debug symbols, w/ optimization
# MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries
#set(ROS_BUILD_TYPE RelWithDebInfo)
include_directories(include ${catkin_INCLUDE_DIRS}
include/${PROJECT_NAME}
/usr/local/xsens/include
)
link_directories( /usr/local/xsens/lib )
#set the default path for built executables to the "bin" directory
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
#set the default path for built libraries to the "lib" directory
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
#uncomment if you have defined messages
#rosbuild_genmsg()
#uncomment if you have defined services
#rosbuild_gensrv()
#common commands for building c++ executables and libraries
#rosbuild_add_library(${PROJECT_NAME} src/example.cpp)
#target_link_libraries(${PROJECT_NAME} another_library)
#rosbuild_add_boost_directories()
#rosbuild_link_boost(${PROJECT_NAME} thread)
#rosbuild_add_executable(example examples/example.cpp)
#target_link_libraries(example ${PROJECT_NAME})
#target_link_libraries(${PROJECT_NAME} libxsensdeviceapi)
#set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} /opt/local/lib)
add_executable(mtig_driver_node src/main.cpp src/console.cpp src/conio.c src/myxda.cpp src/serialkey.cpp src/mtiG.cpp src/messageMaker.cpp src/sensorData.cpp)
target_link_libraries(mtig_driver_node m xsensdeviceapi xstypes pthread ${catkin_LIBRARIES})