okay I manged to build the package and i added my projekt to the given CMakeLists.txt. now i want to use the Point Cloud Lib. However, I still get the error that for example pcl/range_image/range_image.h could not be found by the compiler. I assume that i have forgotten someting in the CMakeList. Here is my CMakeLists.txt: (i need some qt stuff, thats why its so huge) Thanks for the help.
SET(QT_USE_QTOPENGL TRUE)
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
FIND_PACKAGE (Qt4 REQUIRED)
FIND_PACKAGE (OpenGL REQUIRED)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
rosbuild_init()
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/src
${QT_INCLUDE_DIR}
/usr/include
/usr/include/ni
/usr/include/qt4/QtOpenGL
)
INCLUDE (
${QT_USE_FILE}
)
SET (LIBS #include libs
OpenNI
)
SET_SOURCE_FILES_PROPERTIES(${QT_SRCS} PROPERTIES OBJECT_DEPENDS "${UI_HDRS}")
QT4_ADD_RESOURCES( RC_SRCS ${QT_RCS} )
QT4_WRAP_UI( UI_HDRS ${QT_UIS} )
QT4_WRAP_CPP( MOC_SRCS ${QT_MOC_HDRS} )
LINK_DIRECTORIES (
${LIBRARY_OUTPUT_PATH}
${LINK_DIRECTORIES}
)
rosbuild_add_executable(pcv
src/main.cpp
src/genpointcloud.cpp
src/updatethread.cpp
include/genpointcloud.h
include/updatethread.h
${GUI_TYPE}
${RC_SRCS}
${MOC_SRCS}
${UI_HDRS}
)
TARGET_LINK_LIBRARIES ( pcv
${LIBS}
${QT_LIBRARIES})`enter code here