Re: [CMake] linking cmake targets to cpack targets

2009-02-28 Thread Eric Noulard
2009/2/28 Aaron Turner synfina...@gmail.com: So is there a clean way to pass the current Cmake config variables to a new cmake process via execute_process()?  Or do I need to create a template file and use configure_file() to do that?  Basically, your above example doesn't work for me because

[CMake] pkg-config custom options

2009-02-28 Thread Remy Chibois
Hi all, as part of our internal software build system, we make heavy use of pkg-config .pc files, and found very useful to parametrize compile options and paths using pkg-config's --define-variable command line option (e.g.: use a build chroot or not). So far, I've been unable to find a

[CMake] How to add -DDEBUG just in command line?

2009-02-28 Thread Kermit Mei
Hello, is there any elegant way to add -DDEBUG to the complier flag just in command line? I don't want to modify my CMakeLists.txt file, I just want to build it when I run : cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr .. I tried the following command in CMakeLists.txt:

Re: [CMake] How to add -DDEBUG just in command line?

2009-02-28 Thread Kermit Mei
Enrico Franchi wrote: On Feb 28, 2009, at 10:48 AM, Kermit Mei wrote: Hello, is there any elegant way to add -DDEBUG to the complier flag just in command line? IF(${CMAKE_BUILD_TYPE} STREQUAL Debug) MESSAGE(Adding Debug flag...) ADD_DEFINITIONS(-DDEBUG) ENDIF(${CMAKE_BUILD_TYPE} STREQUAL

Re: [CMake] How to add -DDEBUG just in command line?

2009-02-28 Thread Kermit Mei
Enrico Franchi wrote: On Feb 28, 2009, at 10:48 AM, Kermit Mei wrote: Hello, is there any elegant way to add -DDEBUG to the complier flag just in command line? IF(${CMAKE_BUILD_TYPE} STREQUAL Debug) MESSAGE(Adding Debug flag...) ADD_DEFINITIONS(-DDEBUG)

[CMake] CMake article

2009-02-28 Thread Bill Hoffman
I am writing an article for the Kitware Source (http://www.kitware.com/products/thesource.html ) about how CMake aides in innovation and collaboration. If you have stories about how CMake has helped your project/research achieve its goals, I would be interested to hear them. Thanks in