KDE/kdelibs/cmake/modules

Alexander Neundorf neundorf at kde.org
Sat Jan 20 14:28:49 CET 2007


SVN commit 625574 by neundorf:

Added new macro MACRO_OPTIONAL_ADD_SUBDIRECTORY(dir), which might be useful e.g. for extragear.
If you use this instead of the normal ADD_SUBDIRECTORY(), it adds for every directory an 
option so you can skip this directory, and it doesn't complain if the directory doesn't exist.
E.g. if you want to compile just one project from the extragear or kdesupport
you can turn the other dirs off if you use this macro instead of the normal
ADD_SUBDIRECTORY()

Alex

CCMAIL: kde-core-devel at kde.org
CCMAIL: kde-buildsystem at kde.org



 M  +1 -0      MacroLibrary.cmake  
 A             MacroOptionalAddSubdirectory.cmake  


--- trunk/KDE/kdelibs/cmake/modules/MacroLibrary.cmake #625573:625574
@@ -7,6 +7,7 @@
 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
 
 INCLUDE(MacroOptionalFindPackage)
+INCLUDE(MacroOptionalAddSubdirectory)
 INCLUDE(MacroAdditionalCleanFiles)
 INCLUDE(MacroAddFileDependencies)
 INCLUDE(MacroAddCompileFlags)


More information about the Kde-buildsystem mailing list