aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <montel@kde.org>2006-03-18 16:54:51 +0000
committerLaurent Montel <montel@kde.org>2006-03-18 16:54:51 +0000
commit59f760108e06726ee40cecd4956fc6b41b5490de (patch)
treed60bf9bdc5a2c4d54da4f336ae711b4e9b10e4ba
parent1da5e248e7cb198bf97c55f5b66b3158c94adeeb (diff)
downloadextra-cmake-modules-59f760108e06726ee40cecd4956fc6b41b5490de.tar.gz
extra-cmake-modules-59f760108e06726ee40cecd4956fc6b41b5490de.tar.bz2
Generate file into own directory
svn path=/trunk/KDE/kdelibs/; revision=520043
-rw-r--r--modules/KDE4Macros.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake
index ca6edc04..4450a734 100644
--- a/modules/KDE4Macros.cmake
+++ b/modules/KDE4Macros.cmake
@@ -109,12 +109,12 @@ MACRO(KDE4_ADD_KCFG_FILES _sources)
set(_src_FILE ${_abs_PATH}/${_basename}.cpp)
set(_header_FILE ${_abs_PATH}/${_basename}.h)
set(_moc_FILE ${_abs_PATH}/${_basename}.moc)
-
- # the command for creating the source file from the kcfg file
+
+ # the command for creating the source file from the kcfg file
ADD_CUSTOM_COMMAND(OUTPUT ${_src_FILE}
COMMAND ${KDE4_KCFGC_EXECUTABLE}
- ARGS ${CMAKE_CURRENT_SOURCE_DIR}/${_kcfg_FILE} ${_tmp_FILE}
- DEPENDS ${_tmp_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/${_kcfg_FILE} ${_KDE4_KCONFIG_COMPILER_DEP} )
+ ARGS ${_abs_PATH}/${_kcfg_FILE} ${_tmp_FILE} -d ${_abs_PATH}
+ DEPENDS ${_tmp_FILE} ${_abs_PATH}/${_kcfg_FILE} ${_KDE4_KCONFIG_COMPILER_DEP} )
# for the case that the header contains signals or slots, it has to be processed by moc
# since the generated header isn't listed as OUTPUT in the ADD_CUSTOM_COMMAND above, we