added install targets for JSON resources

This commit is contained in:
Martchus 2016-04-20 00:20:35 +02:00
parent ea257f9fee
commit fa1609eb7e
1 changed files with 16 additions and 0 deletions

View File

@ -127,6 +127,22 @@ use_qt_utilities()
# add Qt modules which can currently not be detected automatically
list(APPEND ADDITIONAL_QT_MODULES Network)
# add installs for JSON resource files
install(FILES resources/json/groovesharkauthenticationinfo.json
DESTINATION share/${META_PROJECT_NAME}/json
COMPONENT json-res
)
install(FILES resources/json/itaginfo.json
DESTINATION share/${META_PROJECT_NAME}/json
COMPONENT json-res
)
if(NOT TARGET install-json-res)
add_custom_target(install-json-res
DEPENDS ${META_PROJECT_NAME}
COMMAND "${CMAKE_COMMAND}" -DCMAKE_INSTALL_COMPONENT=json-res -P "${CMAKE_BINARY_DIR}/cmake_install.cmake"
)
endif()
# include modules to apply configuration
include(BasicConfig)
include(QtGuiConfig)