0
$\begingroup$

Rosanswers logo

When i built a cpp file in a ros project (after "catkin_make" command) the executable occurs in the path /devel/lib. But i want it to occur in /src . How can i change the built file's directory ?


Originally posted by zuygar on ROS Answers with karma: 19 on 2015-02-12

Post score: 0


Original comments

Comment by dornhege on 2015-02-12:
Why do you want that? It is unlikely that rosrun and other tools will work with that.

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

I would not recommend putting anything into src, but you can effect the output location of executables in CMake: http://stackoverflow.com/questions/13556885/how-to-change-the-executable-output-directory-for-win32-builds-in-cmake


Originally posted by William with karma: 17335 on 2015-02-12

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.