-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
44 lines (32 loc) · 1.47 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
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
# The name of the project.
PROJECT(RWgetPCDepthRGB)
# Used to resolve absolute path names
SET(ROOT ${CMAKE_CURRENT_SOURCE_DIR})
# Now set the RW/RWS root (edit this if necessary)
SET(RW_ROOT "${ROOT}/../../../RobWork")
SET(RWS_ROOT "${ROOT}/../../../RobWorkStudio")
# We use the settings that robwork studio uses
SET(CMAKE_BUILD_TYPE Release)
SET(RobWorkStudio_DIR "${RWS_ROOT}/cmake")
FIND_PACKAGE(RobWorkStudio)
INCLUDE_DIRECTORIES( ${ROBWORK_INCLUDE_DIRS} ${ROBWORKSTUDIO_INCLUDE_DIRS} )
LINK_DIRECTORIES( ${ROBWORK_LIBRARY_DIRS} ${ROBWORKSTUDIO_LIBRARY_DIRS} )
find_package(PCL 1.3 REQUIRED COMPONENTS common io)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
find_package( OpenCV REQUIRED )
######################### From here we add the plugins
# if we want to use ui files add them here
SET(UIS_FILES RWgetPCDepthRGB.ui)
RWS_QT4_WRAP_UI(UIS_OUT_H ${UIS_FILES})
SET(SrcFiles RWgetPCDepthRGB.cpp ${UIS_OUT_H})
QT4_WRAP_CPP(MocSrcFiles RWgetPCDepthRGB.hpp OPTIONS -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED)
QT4_ADD_RESOURCES(RccSrcFiles resources.qrc)
message(${PCL_LIBRARIES})
# The shared library to build:
ADD_LIBRARY(RWgetPCDepthRGB MODULE ${SrcFiles} ${MocSrcFiles} ${RccSrcFiles})
TARGET_LINK_LIBRARIES(RWgetPCDepthRGB ${ROBWORKSTUDIO_LIBRARIES} ${ROBWORK_LIBRARIES})
target_link_libraries(RWgetPCDepthRGB ${PCL_LIBRARIES})
target_link_libraries(RWgetPCDepthRGB ${OpenCV_LIBS} )