From 6bcd26467abb252ca269faad4ae2131566531ce0 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sat, 20 Jan 2007 13:28:47 +0000 Subject: 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@kde.org CCMAIL: kde-buildsystem@kde.org svn path=/trunk/KDE/kdelibs/; revision=625574 --- modules/MacroLibrary.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/MacroLibrary.cmake') diff --git a/modules/MacroLibrary.cmake b/modules/MacroLibrary.cmake index 59836927..3b802126 100644 --- a/modules/MacroLibrary.cmake +++ b/modules/MacroLibrary.cmake @@ -7,6 +7,7 @@ # For details see the accompanying COPYING-CMAKE-SCRIPTS file. INCLUDE(MacroOptionalFindPackage) +INCLUDE(MacroOptionalAddSubdirectory) INCLUDE(MacroAdditionalCleanFiles) INCLUDE(MacroAddFileDependencies) INCLUDE(MacroAddCompileFlags) -- cgit v1.2.1