tde_add_ui_files: Use TDE_CMAKE_MODULES to determine the path for tde_uic.cmake.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/71/head
Slávek Banko 4 years ago
parent 0846fa1cb7
commit 639294f962
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -425,7 +425,8 @@ 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}
-P ${CMAKE_MODULE_PATH}/tde_uic.cmake -DTDE_CMAKE_MODULES:FILEPATH=${TDE_CMAKE_MODULES}
-P ${TDE_CMAKE_MODULES}/tde_uic.cmake
DEPENDS ${_ui_absolute_path} ) DEPENDS ${_ui_absolute_path} )
endforeach( _ui_file ) endforeach( _ui_file )

@ -9,7 +9,7 @@
# #
################################################# #################################################
set( CMAKE_MODULE_PATH "${MASTER_SOURCE_DIR}/cmake/modules" ) set( CMAKE_MODULE_PATH "${TDE_CMAKE_MODULES}" )
include( TDEMacros ) include( TDEMacros )
get_filename_component( _ui_basename ${UI_FILE} NAME_WE ) get_filename_component( _ui_basename ${UI_FILE} NAME_WE )

Loading…
Cancel
Save