Hi, - For the -I options you can use the include_directories() command. - For the -D options you can use the add_definitions() command. - For the linker options you can use the target_link_libraries() command.
You can type cmake --help-command <command> in a terminal to read the documentation about how to use them. Cheers, -Nico On Mon, Jul 11, 2011 at 5:04 PM, Haitao Zhu <[email protected]> wrote: > 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, > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Nicolas Desprès _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
