Add imported executable to package
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 ?