Re: [CMake] Linux In-the-source Build multiple modes without swithing

2009-06-22 Thread Jesper Eskilson
Bill Hoffman wrote: Charlie Sun wrote: Hi, I'm trying to do a linux build with both release and debug mode. In stead of builing out of source as indicated on the FAQ 4.15, I really need to do in the source build. currently, if I do a release build and then a debug build and then another

Re: [CMake] Linux In-the-source Build multiple modes without swithing

2009-06-22 Thread Bill Hoffman
Jesper Eskilson wrote: - Be able to do make {Debug|Release|...}. - Be able to use the same infrastructure for running cmake both on Unix and Windows. I currently have to maintain two different ways of running cmake: one for single-config build directories, and another for multiple-config

Re: [CMake] Linux In-the-source Build multiple modes without swithing

2009-06-19 Thread Bill Hoffman
Charlie Sun wrote: Because I would need to run the test using ctest, and the test cases have hard-coded and relative paths configured. If i do an out-of-source build. Some test cases would fail. I am also building the project on windows Visual studio, which does not have the problem with

Re: [CMake] Linux In-the-source Build multiple modes without swithing

2009-06-19 Thread Dmytro Ovdiienko
Charlie, Move all your input data files to the resource folder and add following to the end of CMakeLists.txt ## # Post-build steps ## add_custom_command( TARGET ${PROJECT_NAME} POST_BUILD COMMAND

Re: [CMake] Linux In-the-source Build multiple modes without swithing

2009-06-19 Thread Eric Noulard
2009/6/19 Dmytro Ovdiienko dmitriy.ovdie...@gmail.com: BTW, how about to add to CMake posibility to create symbolic/hard links? You may already use -E create_symlink old new- create a symbolic link new - old (at least with CMake 2.6.4) -- Erk Membre de l'April - « promouvoir et défendre

Re: [CMake] Linux In-the-source Build multiple modes without swithing

2009-06-18 Thread Charlie Sun
Because I would need to run the test using ctest, and the test cases have hard-coded and relative paths configured. If i do an out-of-source build. Some test cases would fail. I am also building the project on windows Visual studio, which does not have the problem with in-the-source. it will put

[CMake] Linux In-the-source Build multiple modes without swithing

2009-06-17 Thread Charlie Sun
Hi, I'm trying to do a linux build with both release and debug mode. In stead of builing out of source as indicated on the FAQ 4.15, I really need to do in the source build. currently, if I do a release build and then a debug build and then another release build. It will actually rebuild the

Re: [CMake] Linux In-the-source Build multiple modes without swithing

2009-06-17 Thread Michael Jackson
On Jun 17, 2009, at 11:06 AM, Charlie Sun wrote: Hi, I'm trying to do a linux build with both release and debug mode. In stead of builing out of source as indicated on the FAQ 4.15, I really need to do in the source build. currently, if I do a release build and then a debug build and

Re: [CMake] Linux In-the-source Build multiple modes without swithing

2009-06-17 Thread Bill Hoffman
Charlie Sun wrote: Hi, I'm trying to do a linux build with both release and debug mode. In stead of builing out of source as indicated on the FAQ 4.15, I really need to do in the source build. currently, if I do a release build and then a debug build and then another release build. It will