How to customize the outpath of exe in CMakeLists?

asked 2018-11-22 08:58:00 -0600

rjosodtssp gravatar image

I already tried:

add_executable(HelloWorld src/HelloWorld.cpp)


and set_target_properties(HelloWorld PROPERTIES EXECUTABLE_OUTPUT_DIRECTORY /home/me)

they don't work, HelloWorld still in devel/lib, how to do this ?

edit retag flag offensive close merge delete



Why do you want to change this? The location is integral to working of the wider ROS system. Do you instead want to use the install section to place the binaries somewhere else when the package is installed?

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2018-11-22 09:03:57 -0600 )edit