mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-21 19:21:17 +02:00
move ADD_CUSTOM_QRC_PATH function to its own file
This commit is contained in:
parent
898c99e5b8
commit
8fdbac521f
2 changed files with 7 additions and 5 deletions
7
cmake/macros/AddCustomQrcPath.cmake
Normal file
7
cmake/macros/AddCustomQrcPath.cmake
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# adds a custom path and local path to the inserted CUSTOM_PATHS_VAR list which
|
||||||
|
# can be given to the GENERATE_QRC command
|
||||||
|
|
||||||
|
function(ADD_CUSTOM_QRC_PATH CUSTOM_PATHS_VAR IMPORT_PATH LOCAL_PATH)
|
||||||
|
list(APPEND ${CUSTOM_PATHS_VAR} "${IMPORT_PATH}=${LOCAL_PATH}")
|
||||||
|
set(${CUSTOM_PATHS_VAR} ${${CUSTOM_PATHS_VAR}} PARENT_SCOPE)
|
||||||
|
endfunction()
|
|
@ -13,11 +13,6 @@ endfunction()
|
||||||
|
|
||||||
set(CUSTOM_INTERFACE_QRC_PATHS "")
|
set(CUSTOM_INTERFACE_QRC_PATHS "")
|
||||||
|
|
||||||
function(ADD_CUSTOM_QRC_PATH CUSTOM_PATHS_VAR IMPORT_PATH LOCAL_PATH)
|
|
||||||
list(APPEND ${CUSTOM_PATHS_VAR} "${IMPORT_PATH}=${LOCAL_PATH}")
|
|
||||||
set(${CUSTOM_PATHS_VAR} ${${CUSTOM_PATHS_VAR}} PARENT_SCOPE)
|
|
||||||
endfunction()
|
|
||||||
|
|
||||||
find_npm()
|
find_npm()
|
||||||
|
|
||||||
if (BUILD_TOOLS AND NPM_EXECUTABLE)
|
if (BUILD_TOOLS AND NPM_EXECUTABLE)
|
||||||
|
|
Loading…
Reference in a new issue