tde_add_ui_files: Fix the wrong automatic use of TQT_ONLY mode when building tdelibs as such.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/88/head
Slávek Banko 2 years ago
parent 25734cf506
commit 2dbc318de9
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -414,6 +414,10 @@ endmacro( tde_install_la_file )
##### tde_add_ui_files ##### tde_add_ui_files
macro( tde_add_ui_files _sources ) macro( tde_add_ui_files _sources )
if( TDE_FOUND OR "${CMAKE_PROJECT_NAME}" STREQUAL "tdelibs" )
set( HAVE_TDE 1 )
endif()
foreach( _ui_file ${ARGN} ) foreach( _ui_file ${ARGN} )
get_filename_component( _ui_basename ${_ui_file} NAME_WE ) get_filename_component( _ui_basename ${_ui_file} NAME_WE )
@ -430,7 +434,7 @@ macro( tde_add_ui_files _sources )
-DUI_FILE:FILEPATH=${_ui_absolute_path} -DUI_FILE:FILEPATH=${_ui_absolute_path}
-DMASTER_SOURCE_DIR:FILEPATH=${CMAKE_SOURCE_DIR} -DMASTER_SOURCE_DIR:FILEPATH=${CMAKE_SOURCE_DIR}
-DMASTER_BINARY_DIR:FILEPATH=${CMAKE_BINARY_DIR} -DMASTER_BINARY_DIR:FILEPATH=${CMAKE_BINARY_DIR}
-DTDE_FOUND=${TDE_FOUND} -DTDE_FOUND=${HAVE_TDE}
-DTQT_ONLY=${TQT_ONLY} -DTQT_ONLY=${TQT_ONLY}
-P ${TDE_CMAKE_MODULES}/tde_uic.cmake -P ${TDE_CMAKE_MODULES}/tde_uic.cmake
DEPENDS ${_ui_absolute_path} ) DEPENDS ${_ui_absolute_path} )

Loading…
Cancel
Save