summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-05-24 20:54:20 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-05-24 20:54:20 +0200
commit639294f9627de22e91e016d81329a532d65ea8f4 (patch)
treec96fc94bc89fdc536cc7095f9c4cd48e69894c12
parent0846fa1cb7ca2f8df276849f75196efc0935b846 (diff)
downloadtde-cmake-639294f9627de22e91e016d81329a532d65ea8f4.tar.gz
tde-cmake-639294f9627de22e91e016d81329a532d65ea8f4.zip
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>
-rw-r--r--modules/TDEMacros.cmake3
-rw-r--r--modules/tde_uic.cmake2
2 files changed, 3 insertions, 2 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index bb871e1..92527b2 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -425,7 +425,8 @@ macro( tde_add_ui_files _sources )
-DUI_FILE:FILEPATH=${_ui_absolute_path}
-DMASTER_SOURCE_DIR:FILEPATH=${CMAKE_SOURCE_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} )
endforeach( _ui_file )
diff --git a/modules/tde_uic.cmake b/modules/tde_uic.cmake
index 36b921f..0b5421d 100644
--- a/modules/tde_uic.cmake
+++ b/modules/tde_uic.cmake
@@ -9,7 +9,7 @@
#
#################################################
-set( CMAKE_MODULE_PATH "${MASTER_SOURCE_DIR}/cmake/modules" )
+set( CMAKE_MODULE_PATH "${TDE_CMAKE_MODULES}" )
include( TDEMacros )
get_filename_component( _ui_basename ${UI_FILE} NAME_WE )