diff --git a/CMakeLists.txt b/CMakeLists.txt index b656b69b..3b9a2583 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,10 +31,13 @@ else() message("-- catkin not found") set(Poco_DIR cmake) find_package(Poco REQUIRED COMPONENTS Foundation) - set(CATKIN_PACKAGE_LIB_DESTINATION lib) set(CATKIN_GLOBAL_BIN_DESTINATION bin) - set(CATKIN_GLOBAL_BIN_DESTINATION bin) - set(CATKIN_PACKAGE_INCLUDE_DESTINATION include/class_loader) + set(CATKIN_GLOBAL_LIB_DESTINATION lib) + set(CATKIN_GLOBAL_LIBEXEC_DESTINATION lib) + set(CATKIN_GLOBAL_INCLUDE_DESTINATION include) + set(CATKIN_PACKAGE_LIB_DESTINATION ${CATKIN_GLOBAL_LIB_DESTINATION}) + set(CATKIN_PACKAGE_BIN_DESTINATION ${CATKIN_GLOBAL_LIBEXEC_DESTINATION}/${PROJECT_NAME}) + set(CATKIN_PACKAGE_INCLUDE_DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}/${PROJECT_NAME}) endif() include_directories(include ${console_bridge_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${Poco_INCLUDE_DIRS})