From c281cef3601a597f6deea894c50cbc978efc3afc Mon Sep 17 00:00:00 2001 From: samelian Date: Sun, 21 Nov 2010 00:44:15 +0000 Subject: [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 --- modules/TDEMacros.cmake | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'modules/TDEMacros.cmake') diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 0647431..156872a 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -1,3 +1,17 @@ +################################################# +# +# (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} ) -- cgit v1.2.1