cmake_minimum_required(VERSION 3.0.2) project(balm2) set(CMAKE_BUILD_TYPE "Release") # set(CMAKE_CXX_FLAGS "-std=c++14") # set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g") ADD_COMPILE_OPTIONS(-std=c++14 ) set( CMAKE_CXX_FLAGS "-std=c++14 -O3" ) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fexceptions" ) set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -pthread -std=c++0x -std=c++14 -fexceptions") find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs pcl_conversions pcl_ros ) find_package(Eigen3 REQUIRED) find_package(PCL REQUIRED) find_package(Ceres REQUIRED) catkin_package( CATKIN_DEPENDS geometry_msgs nav_msgs roscpp rospy std_msgs DEPENDS EIGEN3 PCL INCLUDE_DIRS ) include_directories( include ${catkin_INCLUDE_DIRS} ${PCL_INCLUDE_DIRS} ${CERES_INCLUDE_DIRS} ) add_executable(consistency src/simulation/consistency.cpp) target_link_libraries(consistency ${catkin_LIBRARIES} ${PCL_LIBRARIES}) add_executable(benchmark_virtual src/benchmark/benchmark_virtual.cpp) target_link_libraries(benchmark_virtual ${catkin_LIBRARIES} ${PCL_LIBRARIES}) add_executable(benchmark_realworld src/benchmark/benchmark_realworld.cpp) target_link_libraries(benchmark_realworld ${catkin_LIBRARIES} ${PCL_LIBRARIES}) add_executable(PA_test src/compare_test/PA_test.cpp) target_link_libraries(PA_test ${catkin_LIBRARIES} ${PCL_LIBRARIES} ${CERES_LIBRARIES}) add_executable(BAREG_test src/compare_test/BAREG_test.cpp) target_link_libraries(BAREG_test ${catkin_LIBRARIES} ${PCL_LIBRARIES} ${CERES_LIBRARIES}) add_executable(BALM1_test src/compare_test/BALM1_test.cpp) target_link_libraries(BALM1_test ${catkin_LIBRARIES} ${PCL_LIBRARIES}) add_executable(EF_test src/compare_test/EF_test.cpp src/compare_test/SE3/SO3.cpp src/compare_test/SE3/SE3.cpp) target_link_libraries(EF_test ${catkin_LIBRARIES} ${PCL_LIBRARIES})