Robotics StackExchange | Archived questions

How to customize the outpath of exe in CMakeLists?

I already tried:

add_executable(HelloWorld src/HelloWorld.cpp)

SET(EXECUTABLEOUTPUTPATH /home/me)

and set_target_properties(HelloWorld PROPERTIES EXECUTABLE_OUTPUT_DIRECTORY /home/me)

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

Asked by rjosodtssp on 2018-11-22 09:58:00 UTC

Comments

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?

Asked by PeteBlackerThe3rd on 2018-11-22 10:03:57 UTC

Answers