summaryrefslogtreecommitdiffstats
path: root/Modules/Qt4Macros.cmake
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2010-12-23 16:21:56 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2010-12-23 16:21:56 (GMT)
commitd640d549d5f7648328f72180966b2a0cd604e29a (patch)
tree1ac2c6d6dec16720c4fc5f8cd59846eb51984e3f /Modules/Qt4Macros.cmake
parent97e64e8607dd1f761eaa945c1cc525093725f3fc (diff)
downloadCMake-d640d549d5f7648328f72180966b2a0cd604e29a.zip
CMake-d640d549d5f7648328f72180966b2a0cd604e29a.tar.gz
CMake-d640d549d5f7648328f72180966b2a0cd604e29a.tar.bz2
allow absolute paths for dbus interface.
Diffstat (limited to 'Modules/Qt4Macros.cmake')
-rw-r--r--Modules/Qt4Macros.cmake10
1 files changed, 9 insertions, 1 deletions
diff --git a/Modules/Qt4Macros.cmake b/Modules/Qt4Macros.cmake
index 6a609a0..86a7404 100644
--- a/Modules/Qt4Macros.cmake
+++ b/Modules/Qt4Macros.cmake
@@ -254,7 +254,15 @@ MACRO(QT4_GENERATE_DBUS_INTERFACE _header) # _customName OPTIONS -some -options
GET_FILENAME_COMPONENT(_basename ${_header} NAME_WE)
IF (_customName)
- SET(_target ${CMAKE_CURRENT_BINARY_DIR}/${_customName})
+ if (IS_ABSOLUTE ${_customName})
+ get_filename_component(_containingDir ${_customName} PATH)
+ if (NOT EXISTS ${_containingDir})
+ file(MAKE_DIRECTORY "${_containingDir}")
+ endif()
+ SET(_target ${_customName})
+ else()
+ SET(_target ${CMAKE_CURRENT_BINARY_DIR}/${_customName})
+ endif()
ELSE (_customName)
SET(_target ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.xml)
ENDIF (_customName)