Add imported executable to package

asked 2019-02-08 08:10:19 -0600

nilot gravatar image

updated 2019-02-09 05:00:45 -0600

Here is the CMakeLists.txt of my package

find_package(catkin )
catkin_package()

add_executable (my_test main.cpp)

add_executable(my_test_imported IMPORTED)
set_target_properties(my_test_imported PROPERTIES IMPORTED_LOCATION "path")

rosrun package_name my_test

works, but

rosrun package_name my_test_imported

returns with :

[rosrun] Couldn't find executable named my_test_imported below ...

How can I add an imported executable to my package ?

edit retag flag offensive close merge delete