Brad King wrote:
IF(BUILD_EXAMPLES)
Why do you have a definition for BUILD_EXAMPLES in the top-level
config.h? Building the libs certainly shouldn't care whether examples
will be built. If a few of the sources do need to know for some
reason just create a different configured header for
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 Prakt
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 h
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 libs
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 libs and he decides he wa
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 exam
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 subdire
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 subdire