project(stereoPoseEstimator) cmake_minimum_required(VERSION 2.8) #find_package(Qt5Widgets REQUIRED) #find_package(Qt5Core REQUIRED) #find_package(Qt5Gui REQUIRED) ADD_DEFINITIONS( -std=c++11 ) find_package(Eigen3 REQUIRED) find_package(Boost REQUIRED COMPONENTS system filesystem chrono thread date_time) find_package(VTK REQUIRED) find_package(PkgConfig) pkg_check_modules(PCL_IO REQUIRED pcl_io-1.8) pkg_check_modules(PCL_COMMON REQUIRED pcl_common-1.8) pkg_check_modules(PCL_VISUALIZATION REQUIRED pcl_visualization-1.8) pkg_check_modules(PCL_OCTREE REQUIRED pcl_octree-1.8) pkg_check_modules(PCL_SEGMENTATION REQUIRED pcl_segmentation-1.8) set(PCL_INCLUDE_DIRS ${PCL_IO_INCLUDE_DIRS} ${PCL_COMMON_INCLUDE_DIRS} ${PCL_VISUALIZATION_INCLUDE_DIRS} ${PCL_OCTREE_INCLUDE_DIRS} ${PCL_SEGMENTATION_INCLUDE_DIRS}) set(PCL_LIBRARIES ${PCL_IO_LIBRARIES} ${PCL_COMMON_LIBRARIES} ${PCL_VISUALIZATION_LIBRARIES} ${PCL_OCTREE_LIBRARIES} ${PCL_SEGMENTATION_LIBRARIES}) #find_package(PCL REQUIRED COMPONENTS common visualization filters segmentation sample_consensus search) #QT5_WRAP_UI(UIS_HDRS # batchprocessing.ui #) message(STATUS "headers: " ${PCL_INCLUDE_DIRS}) message(STATUS "libs: " ${PCL_LIBRARIES}) include_directories(${Boost_INCLUDE_DIRS}) include_directories(${PCL_INCLUDE_DIRS}) include_directories(${VTK_INCLUDE_DIRS}) include_directories(${OpenCV_INCLUDE_DIRS}) include_directories(${EIGEN_INCLUDE_DIRS}) include_directories(.) # Instruct CMake to run moc automatically when needed. #set(CMAKE_AUTOMOC ON) #set(CMAKE_INCLUDE_CURRENT_DIR ON) # Add the include directories for the Qt 5 Widgets module to # the compile lines. #include_directories(${Qt5Widgets_INCLUDE_DIRS} ${Qt5Core_INCLUDE_DIRS} ${Qt5Gui_INCLUDE_DIRS}) # Use the compile definitions defined in the Qt 5 Widgets module #add_definitions(${Qt5Widgets_DEFINITIONS}) # Add compiler flags for building executables (-fPIE) #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}") SET(SRC_LIST main.cpp poseestimator.cpp geometry.cpp sampling.cpp cosinebiasedsampling.cpp offcenterellipsesampling.cpp ellipsesampling.cpp ellipseshapesampling.cpp distortedspheresampling.cpp rotationonlysampling.cpp ThreadPool.cpp PCDMemoryRepository.cpp pcdviewer.cpp pedestrianmodel.cpp bodypart.cpp colormap.cpp occupancy3dgrid.cpp drawing.cpp samples.cpp sample.cpp upperleftlegsamples.cpp headsamples.cpp lowerleftlegsamples.cpp lowerrightlegsamples.cpp upperrightlegsamples.cpp torsosamples.cpp upperbodysamples.cpp ) add_executable(poseEstimator ${SRC_LIST} ${UIS_HDRS}) target_link_libraries(poseEstimator ${Boost_LIBRARIES} ${PCL_LIBRARIES} ${VTK_LIBRARIES} ${OpenCV_LIBRARIES} ${EIGEN_LIBRARIES}) #qt5_use_modules(poseEstimator Core Gui Widgets)