forked from jgrogers/microstrain_mip_node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
58 lines (40 loc) · 1.21 KB
/
Copy pathCMakeLists.txt
File metadata and controls
58 lines (40 loc) · 1.21 KB
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
cmake_minimum_required(VERSION 2.8)
project(microstrain_mip_node)
find_package(catkin REQUIRED COMPONENTS
roscpp
sensor_msgs
std_msgs
geometry_msgs
tf
)
add_service_files(
DIRECTORY srv
FILES AddOffset.srv
)
generate_messages()
catkin_package(
INCLUDE_DIRS include
LIBRARIES $(PROJECT_NAME)
CATKIN_DEPEND roscpp sensor_msgs self_test tf geometry_msgs diagnostic_msgs std_srvs
)
include_directories(
include
${catkin_INCLUDE_DIRS}
)
file(GLOB MIP_SDK_SRC
"src/MIP_SDK/*.cpp"
)
add_library(MIP_SDK ${MIP_SDK_SRC})
add_executable(GX3_35_Test src/MIP_SDK/GX3_35_Test.cpp)
target_link_libraries(GX3_35_Test MIP_SDK)
add_executable(driver src/driver.cpp)
target_link_libraries(driver ${catkin_LIBRARIES} MIP_SDK)
add_executable(imu_node src/imu_node.cpp src/3dmgx3.cpp)
target_link_libraries(imu_node ${catkin_LIBRARIES} MIP_SDK)
#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})