catkin build with cmake file and flags

asked 2017-05-03 09:27:36 -0500

inspire gravatar image

updated 2017-05-03 09:48:39 -0500

Hi,

I have many packages that rely on each other. With "catkin build", all packages are compiled and linked in the right order. Now I have two questions:

  1. If I add some CMAKE_CXX_FLAGS arguments in the CMakeLists.txt file of the top-level package, are these flags used for all other packages that are included by this top-level package?

  2. Is it possible to append a "my_config.cmake" file to the "catkin build" command that is used for the whole compilation? It should just set some CMAKE_CXX_FLAGS arguments for all packages.

Thanks in advance!

inspire

edit retag flag offensive close merge delete

Comments

If I add some CMAKE_CXX_FLAGS arguments in the CMakeLists.txt file of the top-level package, are these flags used for all other packages that are included by this top-level package?

a bit of a non-question, as you should not edit the catkin_ws/src/CMakeLists.txt file.

gvdhoorn gravatar image gvdhoorn  ( 2017-05-03 09:54:34 -0500 )edit

I mean the top-level package. That one that holds the main function...

inspire gravatar image inspire  ( 2017-05-03 10:30:23 -0500 )edit