forked from joaomoura24/motions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
executable file
·49 lines (39 loc) · 1.2 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
cmake_minimum_required(VERSION 2.8.3)
project(motions)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED
COMPONENTS
roslib
roscpp
kdl_parser
serial_arm_lib
hardware
)
#find_package(orocos_kdl)
catkin_package(
INCLUDE_DIRS include
LIBRARIES paramProj spiral raster
#CATKIN_DEPENDS roscpp
)
## Specify additional locations of header files
## Your package locations should be listed before other locations
# include_directories(include)
include_directories(
include
${catkin_INCLUDE_DIRS}
)
# Define a library target called raster
add_library(raster src/raster.cpp)
target_link_libraries(raster ${catkin_LIBRARIES})
# Define a library target called spiral
add_library(spiral src/spiral.cpp)
target_link_libraries(spiral ${catkin_LIBRARIES})
# Define a library target called paramProj
add_library(paramProj src/paramProj.cpp)
target_link_libraries(paramProj ${catkin_LIBRARIES})
# Add executable target motions:
add_executable(motions src/motions.cpp)
target_link_libraries(motions ${catkin_LIBRARIES} spiral raster)