move ADD_CUSTOM_QRC_PATH function to its own file

This commit is contained in:
Thijs Wenker 2018-01-27 19:58:15 +01:00
parent 898c99e5b8
commit 8fdbac521f
2 changed files with 7 additions and 5 deletions

View 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()

View file

@ -13,11 +13,6 @@ endfunction()
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()
if (BUILD_TOOLS AND NPM_EXECUTABLE)