[CMake] how to specify gcc options in CMake?

Haitao Zhu drhaitaozhu at gmail.com
Mon Jul 11 11:04:36 EDT 2011


Hi All,

I am new to CMake and am struggling with a questions.
When I compile my programs with the third party libraries, I need to provide
gcc with some options as well as paths to include head files and libraries.
Usually this is how the gcc command looks like when I use gcc:

gcc -Imy_include_files_path -OPTION1 -OPTION2 -lmy_library_files_path
source.c

Now I want to use the third party libraries with ROS and specify those
options, how can I do this?

With Many Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110711/88673f25/attachment.htm>


More information about the CMake mailing list