Re: [CMake] libs only target

2006-06-04 Thread Jan Woetzel
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

Re: [CMake] libs only target

2006-06-04 Thread Jan Woetzel
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

Re: [CMake] libs only target

2006-06-02 Thread Mike Talbot
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

Re: [CMake] libs only target

2006-06-02 Thread Brad King
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

Re: [CMake] libs only target

2006-06-02 Thread Jan Woetzel
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

Re: [CMake] libs only target

2006-06-01 Thread Brad King
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

Re: [CMake] libs only target

2006-06-01 Thread Sylvain Benner
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

[CMake] libs only target

2006-06-01 Thread Jan Woetzel
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