diff --git a/icons-dark/CMakeLists.txt b/icons-dark/CMakeLists.txt index f493c4e4..b4c812c5 100644 --- a/icons-dark/CMakeLists.txt +++ b/icons-dark/CMakeLists.txt @@ -1,35 +1,37 @@ if(BINARY_ICONS_RESOURCE) generate_binary_resource(icons-dark binary_resource) endif() ########### install files ############### set(breeze_icon_dark_dirs actions animations applets apps categories preferences devices emblems emotes mimetypes places status) set(BREEZE_INSTALL_DIR ${KDE_INSTALL_FULL_ICONDIR}/breeze-dark) # Auto-generate 24px monochrome icons from 22px versions if(NOT WIN32) add_custom_target(breeze-generate-24px-versions-dark ALL COMMENT "Generating 24px icons dark" COMMAND ${BASH_EXE} ${CMAKE_SOURCE_DIR}/generate-24px-versions.sh ${CMAKE_CURRENT_BINARY_DIR}/generated/ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) - add_dependencies(breeze-validate-svg breeze-generate-24px-versions-dark) + if (TARGET breeze-validate-svg) + add_dependencies(breeze-validate-svg breeze-generate-24px-versions-dark) + endif() if(NOT SKIP_INSTALL_ICONS) install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/generated/ DESTINATION ${BREEZE_INSTALL_DIR}) endif() endif() if(NOT SKIP_INSTALL_ICONS) install(DIRECTORY ${breeze_icon_dark_dirs} DESTINATION ${BREEZE_INSTALL_DIR}) install(FILES index.theme DESTINATION ${BREEZE_INSTALL_DIR}) endif() gtk_update_icon_cache(${BREEZE_INSTALL_DIR}) if(BINARY_ICONS_RESOURCE) install(FILES ${binary_resource} DESTINATION ${BREEZE_INSTALL_DIR}) endif() diff --git a/icons/CMakeLists.txt b/icons/CMakeLists.txt index 7e6495d9..75f6f5f3 100644 --- a/icons/CMakeLists.txt +++ b/icons/CMakeLists.txt @@ -1,35 +1,37 @@ if(BINARY_ICONS_RESOURCE) generate_binary_resource(icons binary_resource) endif() ########### install files ############### set(breeze_icon_dirs actions animations applets apps categories preferences devices emblems emotes mimetypes places status) set(BREEZE_INSTALL_DIR ${KDE_INSTALL_FULL_ICONDIR}/breeze) # Auto-generate 24px monochrome icons from 22px versions if(NOT WIN32) add_custom_target(breeze-generate-24px-versions ALL COMMENT "Generating 24px icons" COMMAND ${BASH_EXE} ${CMAKE_SOURCE_DIR}/generate-24px-versions.sh ${CMAKE_CURRENT_BINARY_DIR}/generated/ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) - add_dependencies(breeze-validate-svg breeze-generate-24px-versions) + if (TARGET breeze-validate-svg) + add_dependencies(breeze-validate-svg breeze-generate-24px-versions) + endif() if(NOT SKIP_INSTALL_ICONS) install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/generated/ DESTINATION ${BREEZE_INSTALL_DIR}) endif() endif() if(NOT SKIP_INSTALL_ICONS) install(DIRECTORY ${breeze_icon_dirs} DESTINATION ${BREEZE_INSTALL_DIR}) install(FILES index.theme DESTINATION ${BREEZE_INSTALL_DIR}) endif() gtk_update_icon_cache(${BREEZE_INSTALL_DIR}) if(BINARY_ICONS_RESOURCE) install(FILES ${binary_resource} DESTINATION ${BREEZE_INSTALL_DIR}) endif()