how to replace rosbuild_link_boost() with the catkin macro
I am trying to convert a rosbuild package(DSP-3000 package source) to catkin package.
Currently on section 1.3 step 5 of this tutorial.
In the old package (rosbuild), the DSP-3000/CMakeLists.txt has the following:
cmake_minimum_required(VERSION 2.4.6)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
rosbuild_init()
rosbuild_add_boost_directories()
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
include_directories(cereal_port/include)
rosbuild_add_executable(dsp3000 src/dsp3000.cpp)
target_link_libraries(dsp3000 cereal_port)
rosbuild_link_boost(dsp3000 thread)
add_subdirectory(cereal_port)
The tutorial said If rosbuild macros were used, switch from rosbuild macros to the underlying CMake commands
. so, I replaced all the rosbuild macros with catkin macros, shown below:
cmake_minimum_required(VERSION 2.4.6)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
find_package()
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
include_directories(cereal_port/include)
add_executable(dsp3000 src/dsp3000.cpp)
target_link_libraries(dsp3000 cereal_port)
add_subdirectory(cereal_port)
Now the next step is to Declare how your targets (C++ binaries) shall be installed
. In my case, Can anyone tell me what do I need to add in my DSP-3000/CMakeLists.txt to complete this step?
Also, can anyone check if I did the rosbuild to catkin conversion correctly for this file?
Thank you.