Hi,

> cmake -DWITH_DEMO=ON srcdir
> 
> in CMakeLists.txt:
> 
> if(WITH_DEMO)
>    install( demo ....)
> endif(WITH_DEMO)

If nothing else depends on the demo code I could do

if(WITH_DEMO)
  add_subdirectory(example)
endif(WITH_DEMO)

to avoid building the whole source, right?

regards

  W. Holzke
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to