[CMake] install a demo program only if requestet

2009-01-04 Thread Wilfried Holzke
Hi, How would I install a demo program only if the user requests this? For example a feature from the GNU build tools like: ./configure --with-demo thanks for help regards W. Holzke ___ CMake mailing list CMake@cmake.org

Re: [CMake] install a demo program only if requestet

2009-01-04 Thread Werner Smekal
Hi, cmake -DWITH_DEMO=ON srcdir in CMakeLists.txt: if(WITH_DEMO) install( demo ) endif(WITH_DEMO) HTH, Werner Wilfried Holzke wrote: Hi, How would I install a demo program only if the user requests this? For example a feature from the GNU build tools like: ./configure --with-demo

[CMake] Unit Testing

2009-01-04 Thread Jeffrey Drake
I have been trying to figure out the easiest way to setup unit tests. I have seen a unit testing framework called 'check' (some documentation: http://check.sourceforge.net/doc/check.html/Setting-Up-the-Money-Build.html#Setting-Up-the-Money-Build ) but the problem seems to be that its examples