Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also copy svg, icons and doc to build dir, into /data/ subdir
- Loading branch information
1 parent
bb181c8
commit e6a06ec
Showing
8 changed files
with
71 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
MACRO(ADD_QGIS_RESOURCES SOURCE_PREFIX TARGET_PREFIX DEST_FILES SOURCE_FILE_PATHS) | ||
|
||
# On build copy all resource files to build folder | ||
FOREACH(RESOURCE_FILE ${SOURCE_FILE_PATHS}) | ||
ADD_CUSTOM_COMMAND( | ||
OUTPUT "${CMAKE_BINARY_DIR}/output/data/${TARGET_PREFIX}/${RESOURCE_FILE}" | ||
COMMAND cmake -E copy | ||
"${SOURCE_PREFIX}/${RESOURCE_FILE}" | ||
"${CMAKE_BINARY_DIR}/output/data/${TARGET_PREFIX}/${RESOURCE_FILE}" | ||
DEPENDS "${SOURCE_PREFIX}/${RESOURCE_FILE}" | ||
) | ||
LIST(APPEND ${DEST_FILES} | ||
"${CMAKE_BINARY_DIR}/output/data/${TARGET_PREFIX}/${RESOURCE_FILE}") | ||
ENDFOREACH(RESOURCE_FILE) | ||
|
||
# Install resources to system resource folder | ||
FOREACH(RESOURCE_FILE ${RESOURCES_FILES}) | ||
GET_FILENAME_COMPONENT(PATH_NAME "${TARGET_PREFIX}/${RESOURCE_FILE}" PATH) | ||
INSTALL(FILES "${TARGET_PREFIX}/${RESOURCE_FILE}" DESTINATION ${PATH_NAME}) | ||
ENDFOREACH() | ||
|
||
ENDMACRO() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
|
||
FILE (GLOB IMAGES *.png) | ||
INSTALL (FILES ${IMAGES} | ||
DESTINATION ${QGIS_DATA_DIR}/images/icons) | ||
INCLUDE(CopyResources) | ||
|
||
# OS X app/doc icons | ||
IF (APPLE) | ||
ADD_SUBDIRECTORY(mac) | ||
ENDIF (APPLE) | ||
|
||
FILE(GLOB_RECURSE ICON_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.png) | ||
|
||
ADD_QGIS_RESOURCES("${CMAKE_CURRENT_SOURCE_DIR}" "images/icons" DEST_ICON_FILES "${ICON_FILES}") | ||
|
||
ADD_CUSTOM_TARGET(icons ALL DEPENDS ${DEST_ICON_FILES}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters