Mike Talbot wrote:
Why not try
ADD_SUBDIRECTORY(Examples EXCLUDE_FROM_ALL)
Because the binaries for the ADD_TEST targets required by ctest will not
be built, too.
Jan
--
Dipl.-Ing. Jan Woetzel
--
Uni Kiel
Institut f. Informatik und
Jan Woetzel wrote:
Brad King wrote:
IF(BUILD_EXAMPLES)
Thanks Brad,
that's almost the approach we currently use except
IF (BUILD_EXAMPLES OR BUILD_TESTING)
for ctest ADD_TEST executable targets.
However,
we are not satisfied with this approach because:
(1) If someone has built only the
Hi,
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
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