diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-11-21 00:44:15 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-11-21 00:44:15 +0000 |
commit | c281cef3601a597f6deea894c50cbc978efc3afc (patch) | |
tree | 343d86f24c27044a4ac28e6613afdc91f1df60ef /modules/TDEMacros.cmake | |
parent | 1c4b89d7199cd84775cf2595f13b49447ed4290f (diff) | |
download | tde-cmake-c281cef3601a597f6deea894c50cbc978efc3afc.tar.gz tde-cmake-c281cef3601a597f6deea894c50cbc978efc3afc.zip |
[kde-common/cmake] added a special uic wrapper, for using with TDE codebase
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common/cmake@1199209 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'modules/TDEMacros.cmake')
-rw-r--r-- | modules/TDEMacros.cmake | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 0647431..156872a 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -1,4 +1,18 @@ ################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include( KDE3Macros ) # we will need this module for a while + + +################################################# ##### ##### tde_message_fatal @@ -192,8 +206,11 @@ macro( tde_add_ui_files _sources ) list( APPEND ${_sources} ${_ui_basename}.cpp ) add_custom_command( OUTPUT ${_ui_basename}.h ${_ui_basename}.cpp - COMMAND ${QT_UIC_EXECUTABLE} ${_ui_absolute_path} -nounload -o ${_ui_basename}.h - COMMAND ${QT_UIC_EXECUTABLE} ${_ui_absolute_path} -nounload -impl ${_ui_basename}.h -o ${_ui_basename}.cpp + COMMAND ${CMAKE_COMMAND} + -DQT_UIC_EXECUTABLE:FILEPATH=${QT_UIC_EXECUTABLE} + -DTDE_QTPLUGINS_DIR:FILEPATH=${TDE_QTPLUGINS_DIR} + -DUI_FILE:FILEPATH=${_ui_absolute_path} + -P ${TDE_CMAKE_DIR}/tde_uic.cmake COMMAND ${QT_MOC_EXECUTABLE} ${_ui_basename}.h >> ${_ui_basename}.cpp DEPENDS ${_ui_absolute_path} ) |