From fce52d437088520993f5f0df591408aa7e8e6eb4 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Tue, 7 Feb 2006 21:49:31 +0000 Subject: two new macros: macro_append_directory_properties() and macro_append_source_files_properties() don't use CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH in FindKDE4.cmake clean more files Alex svn path=/trunk/KDE/kdelibs/; revision=506927 --- modules/MacroAppendDirectoryProperties.cmake | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 modules/MacroAppendDirectoryProperties.cmake (limited to 'modules/MacroAppendDirectoryProperties.cmake') diff --git a/modules/MacroAppendDirectoryProperties.cmake b/modules/MacroAppendDirectoryProperties.cmake new file mode 100644 index 00000000..2fed5a55 --- /dev/null +++ b/modules/MacroAppendDirectoryProperties.cmake @@ -0,0 +1,19 @@ +# - MACRO_APPEND_DIRECTORY_PROPERTIES(PROPERTIES key values...) +# MACRO_OPTIONAL_FIND_PACKAGE( [QUIT] ) + +MACRO(MACRO_APPEND_DIRECTORY_PROPERTIES _properties _property) + GET_DIRECTORY_PROPERTY(_tmp_DIR_PROPS ${_property} ) + IF (NOT _tmp_DIR_PROPS) + SET(_tmp_DIR_PROPS) + ENDIF (NOT _tmp_DIR_PROPS) + FOREACH(_value ${ARGN}) + IF (_tmp_DIR_PROPS) + SET(_tmp_DIR_PROPS ${_tmp_DIR_PROPS} ${_value}) + ELSE (_tmp_DIR_PROPS) + SET(_tmp_DIR_PROPS ${_value}) + ENDIF (_tmp_DIR_PROPS) + ENDFOREACH(_value ${ARGN}) + + SET_DIRECTORY_PROPERTIES(${_properties} ${_property} "${_tmp_DIR_PROPS}") +ENDMACRO(MACRO_APPEND_DIRECTORY_PROPERTIES) + -- cgit v1.2.1