forked from jgrogers/microstrain_mip_node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt~
60 lines (41 loc) · 1.55 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
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_library(MIP_SDK src/MIP_SDK/byteswap_utilities.cpp src/MIP_SDK/mip.cpp src/MIP_SDK/mip_sdk_3dm.cpp src/MIP_SDK/mip_sdk_ahrs.cpp src/MIP_SDK/mip_sdk_base.cpp src/MIP_SDK/mip_sdk_gps.cpp src/MIP_SDK/mip_sdk_interface.cpp src/MIP_SDK/mip_sdk_nav.cpp src/MIP_SDK/mip_sdk_system.cpp src/MIP_SDK/mip_sdk_user_functions.cpp src/MIP_SDK/ring_buffer.cpp)
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})