Brad King wrote:
Jan Woetzel wrote:
is there a way to compile/link only the "libs" (ADD_LIBRARY)
but skip linking the executables (ADD_EXECUTABLE)
using a global option/switch on cmake level?
I want to save compilation time when I need only the libraries for
linking my client project.
But we have about 200 examples in subdirectories and linking them
takes a lot of time...
OPTION(BUILD_EXAMPLES "Build examples" OFF)
IF(BUILD_EXAMPLES)
ADD_SUBDIRECTORY(Examples)
ENDIF(BUILD_EXAMPLES)
-Brad
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake
Why not try
ADD_SUBDIRECTORY(Examples EXCLUDE_FROM_ALL)
The manual suggests this is a good way to have examples included in the
build system, but not built by default.
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake