[cmake-developers] non-default executables

Brad King brad.king at kitware.com
Mon Oct 2 12:01:35 EDT 2006


Alexander Neundorf wrote:
>> I've added a NOT_IN_ALL option for ADD_LIBRARY and ADD_EXECUTABLE.  This
>> should let you do it:
>>
>> ADD_EXECUTABLE(myTestExe NOT_IN_ALL ...)
>> ADD_CUSTOM_TARGET(test_executables)
>> ADD_DEPENDENCIES(test_executables myTestExe)
> 
> How about naming it "EXCLUDE_FROM_ALL" instead of "NOT_IN_ALL", since 
> "EXCLUDE_FROM_ALL" already exists for ADD_SUBDIRECTORY ?

Good call.

Thanks,
-Brad

/cvsroot/CMake/CMake/Source/cmAddExecutableCommand.cxx,v  <--
cmAddExecutableCommand.cxx
new revision: 1.28; previous revision: 1.27
/cvsroot/CMake/CMake/Source/cmAddExecutableCommand.h,v  <--
cmAddExecutableCommand.h
new revision: 1.16; previous revision: 1.15
/cvsroot/CMake/CMake/Source/cmAddLibraryCommand.cxx,v  <--
cmAddLibraryCommand.cxx
new revision: 1.26; previous revision: 1.25
/cvsroot/CMake/CMake/Source/cmAddLibraryCommand.h,v  <--
cmAddLibraryCommand.h
new revision: 1.17; previous revision: 1.16
/cvsroot/CMake/CMake/Tests/Complex/Executable/CMakeLists.txt,v  <--
CMakeLists.txt
new revision: 1.55; previous revision: 1.54
/cvsroot/CMake/CMake/Tests/Complex/Library/CMakeLists.txt,v  <--
CMakeLists.txt
new revision: 1.37; previous revision: 1.36


More information about the cmake-developers mailing list