-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
41 lines (35 loc) · 1.43 KB
/
CMakeLists.txt
File metadata and controls
41 lines (35 loc) · 1.43 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
################################################################################
# Set minimum required version of cmake, project name and compile options
################################################################################
cmake_Minimum_required(VERSION 2.8.3)
project(feetech_lib)
################################################################################
# Find catkin packages and libraries for catkin and system dependencies
################################################################################
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
)
################################################################################
# Declare catkin specific configuration to be passed to dependent projects
################################################################################
catkin_package(
INCLUDE_DIRS include
LIBRARIES feetech_lib
CATKIN_DEPENDS roscpp rospy std_msgs
)
################################################################################
# Build
################################################################################
include_directories(
${PROJECT_SOURCE_DIR}/include/feetech_lib
${catkin_INCLUDE_DIRS}
)
file(GLOB hdrs include/feetech_lib/*.h)
file(GLOB srs src/*.cpp)
add_library(feetech_lib ${hdrs} ${srs})
add_dependencies(feetech_lib ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(feetech_lib
${catkin_LIBRARIES}
)