diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-12-16 13:19:46 +0000 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-12-16 13:19:46 +0000 |
commit | 095470941e9a5c481ee9736e802052bd390c505f (patch) | |
tree | 3a357309a500c2e71b57d6e9a5254f466bbc8bff /modules/CMakeLists.txt | |
parent | 2414142ddec42fb0c112a7d0df45214d9375b6c3 (diff) | |
download | extra-cmake-modules-095470941e9a5c481ee9736e802052bd390c505f.tar.gz extra-cmake-modules-095470941e9a5c481ee9736e802052bd390c505f.tar.bz2 |
new macro MACRO_APPEND_IF(var condition value1..valuen)
can be used to simplify code:
macro_append_if(mySrcs SOMELIB_FOUND file1.cpp file2.cpp)
instead of
if(SOMELIB_FOUND)
set(mySrcs file1.cpp file2.cpp)
endif(SOMELIB_FOUND)
Alex
svn path=/trunk/KDE/kdelibs/; revision=749077
Diffstat (limited to 'modules/CMakeLists.txt')
-rw-r--r-- | modules/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt index e8eba2e1..5de4aa7a 100644 --- a/modules/CMakeLists.txt +++ b/modules/CMakeLists.txt @@ -1,4 +1,4 @@ -# install the cmake files +## install the cmake files file(GLOB cmakeFiles "${CMAKE_CURRENT_SOURCE_DIR}/*.cmake") |