-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
64 lines (49 loc) · 1.57 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
if (PCL_LIBRARIES)
project(gazebo_kinectplugin)
## quadrotor2
set(quadrotor2_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/../quadrotor2/include)
set(quadrotor2_LIBRARY_DIRS ${CMAKE_CURRENT_BINARY_DIR}/../quadrotor2)
set(quadrotor2_LIBRARIES quadrotorplugin2)
## easyiceconfig customs
set(easyiceconfig_STATIC_LIBRARIES easyiceconfig-embedded)
## Dependencies
include_directories(
${GAZEBO_INCLUDE_DIRS}
${INTERFACES_CPP_DIR}
${LIBS_DIR}
${GEARBOX_INCLUDE_DIRS}
/usr/include/vtk-5.8
${CMAKE_CURRENT_SOURCE_DIR}
${easyiceconfig_INCLUDE_DIRS}
${quadrotor2_INCLUDE_DIRS}
)
link_directories(
${GAZEBO_LIBRARY_DIRS}
${easyiceconfig_LIBRARY_DIRS}
${quadrotor2_LIBRARY_DIRS}
)
## Project
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++0x" ) # Opciones para el compilador
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include")
set(SOURCES
src/kinect.cc
include/kinect/kinect.hh
include/kinect/pointcloudi.hpp
)
add_library(${PROJECT_NAME} SHARED ${SOURCES})
target_link_libraries(${PROJECT_NAME}
JderobotInterfaces
jderobotutil
${GAZEBO_libraries}
${PCL_LIBRARIES}
${OpenCV_LIBRARIES}
${ZeroCIce_LIBRARIES}
${easyiceconfig_STATIC_LIBRARIES}
${quadrotor2_LIBRARIES}
)
INSTALL (TARGETS ${PROJECT_NAME} DESTINATION share/jderobot/gazebo/plugins/flyingkinect/ COMPONENT core)
FILE(GLOB_RECURSE CFG_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.cfg)
INSTALL (FILES ${CFG_FILES} DESTINATION share/jderobot/gazebo/plugins/flyingkinect/ COMPONENT core)
else()
message(WARNING "flyingKinect requirements unmet: missing PCL_LIBRARIES")
endif()