[CMake] install a demo program only if requestet
Werner Smekal
smekal at iap.tuwien.ac.at
Sun Jan 4 16:17:38 EST 2009
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
>
> thanks for help
>
> regards
>
> W. Holzke
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
--
Dr. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria
DVR-Nr: 0005886
email: smekal at iap.tuwien.ac.at
web: http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
+43-(0)1-58801-13469 (laboratory)
fax: +43-(0)1-58801-13499
More information about the CMake
mailing list