Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to customize the outpath of exe in CMakeLists?

I already tried:

add_executable(HelloWorld src/HelloWorld.cpp)

SET(EXECUTABLE_OUTPUT_PATH /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 ?