-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
67 lines (56 loc) · 1.38 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
cmake_minimum_required(VERSION 2.8.3)
project(inertial_sense)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
sensor_msgs
geometry_msgs
message_generation
)
find_package(Threads)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11 -fms-extensions -Wl,--no-as-needed -DPLATFORM_IS_LINUX" )
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11 -fms-extensions -Wl,--no-as-needed -DPLATFORM_IS_LINUX")
add_message_files(
FILES
SatInfo.msg
GPS.msg
GPSInfo.msg
DThetaVel.msg
)
generate_messages(
DEPENDENCIES
std_msgs
geometry_msgs
)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS roscpp sensor_msgs geometry_msgs
)
SET(IS_SP_DIR lib/inertialsense_serial_protocol)
SET(SERIAL_DIR lib/serial)
set(IS_SRC
${IS_SP_DIR}/data_sets.c
${IS_SP_DIR}/data_sets.h
${IS_SP_DIR}/ISComm.c
${IS_SP_DIR}/ISComm.h
${IS_SP_DIR}/ISConstants.h
)
set(SERIAL_SRC
${SERIAL_DIR}/serialPort.c
${SERIAL_DIR}/serialPort.h
${SERIAL_DIR}/serialPortPlatform.c
${SERIAL_DIR}/serialPortPlatform.h
)
include_directories(include
${catkin_INCLUDE_DIRS}
${IS_SP_DIR}
${SERIAL_DIR}
)
add_executable(inertial_sense_node
src/inertial_sense.cpp
include/inertial_sense.h
${IS_SRC}
${SERIAL_SRC}
)
target_link_libraries(inertial_sense_node ${catkin_LIBRARIES})
add_dependencies(inertial_sense_node inertial_sense_generate_messages_cpp)