From e3aa5b879ff9339b77532721df7bdc74348b676f Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Mon, 1 May 2006 11:54:15 +0000 Subject: -add a macro to convert the value of cmake variables to 0 or 1 for use in config.h.cmake Alex svn path=/trunk/KDE/kdelibs/; revision=536102 --- modules/MacroBoolTo01.cmake | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 modules/MacroBoolTo01.cmake (limited to 'modules/MacroBoolTo01.cmake') diff --git a/modules/MacroBoolTo01.cmake b/modules/MacroBoolTo01.cmake new file mode 100644 index 00000000..7580cce3 --- /dev/null +++ b/modules/MacroBoolTo01.cmake @@ -0,0 +1,14 @@ +# MACRO_BOOL_TO_01( VAR RESULT0 ... RESULTN ) +# This macro evaluates its first argument +# and sets all the given vaiables either to 0 or 1 +# depending on the value of the first one + +MACRO(MACRO_BOOL_TO_01 FOUND_VAR ) + FOREACH (_current_VAR ${ARGN}) + IF(${FOUND_VAR}) + SET(${_current_VAR} 1) + ELSE(${FOUND_VAR}) + SET(${_current_VAR} 0) + ENDIF(${FOUND_VAR}) + ENDFOREACH(_current_VAR) +ENDMACRO(MACRO_BOOL_TO_01) -- cgit v1.2.1 From c778596920e0d5357f216c885e35b4f97d371a23 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sat, 9 Sep 2006 10:18:35 +0000 Subject: added copyright notice everywhere. Now they all are BSD-licensed, as copyright holder I inserted everywhere the one who added it to svn (or Kitware if it is an enhanced copy from taken cmake) Some developers committed quite often but were not the ones who added the file, if you feel you have also copyright on the file add your name in the specific file. Copyright holders: CCMAIL: montel@kde.org CCMAIL: toscano.pino@tiscali.it CCMAIL: adymo@kdevelop.org CCMAIL: ranger@befunk.com CCMAIL: zack@kde.org CCMAIL: caslav.ilic@gmx.net CCMAIL: syntheticpp@yahoo.com CCMAIL: js@iidea.pl CCMAIL: michael.larouche@kdemail.net CCMAIL: ossi@kde.org CCMAIL: faure@kde.org Committers, but no files added so that they are not listed as copyright holders: CCMAIL: ch.ehrlicher@gmx.de CCMAIL: winter@kde.org CCMAIL: ralf.habacker@freenet.de CCMAIL: moura@kdewebdev.org CCMAIL: kde-buildsystem@kde.org Alex svn path=/trunk/KDE/kdelibs/; revision=582410 --- modules/MacroBoolTo01.cmake | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/MacroBoolTo01.cmake') diff --git a/modules/MacroBoolTo01.cmake b/modules/MacroBoolTo01.cmake index 7580cce3..63b98526 100644 --- a/modules/MacroBoolTo01.cmake +++ b/modules/MacroBoolTo01.cmake @@ -3,6 +3,12 @@ # and sets all the given vaiables either to 0 or 1 # depending on the value of the first one +# Copyright (c) 2006, Alexander Neundorf, +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + + MACRO(MACRO_BOOL_TO_01 FOUND_VAR ) FOREACH (_current_VAR ${ARGN}) IF(${FOUND_VAR}) -- cgit v1.2.1