Commit a167b312 authored by Daan De Meyer's avatar Daan De Meyer

Clean up main CMake scripts.

- Use target based commands instead of source variables and directory
based commands.
- Move `find_package` calls from top level CMake script into kate and
kwrite subdirectories. This is consistent with the addons where each
target finds its own required dependencies.
- Syntax cleanup: Two spaces indentation and, spaces after command
names and split long commands over multiple lines.
- Append to `CMAKE_MODULE_PATH` instead of overriding it so that it can
be overriden manually from the command line by developers if needed.
- Remove obvious comments.
- Remove nested `project` calls as they are unnecessary.
- Rename `kdeinit_kate` to `kate` and `kate` to `kate-bin`.
- Remove `qt5_add_resources` usage and pass resource files directly to
`target_sources` instead (thanks to `CMAKE_AUTORC`).
- Remove unnecessary and transitive dependencies.
- Exclusively use variables for MacOS bundle strings.
parent fdc8a93f
# 3.1 is required for `target_sources`.
cmake_minimum_required (VERSION 3.1 FATAL_ERROR)
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
# Kate project
project (kate)
project(kate)
set (QT_MIN_VERSION "5.4.0")
set(QT_MIN_VERSION "5.4.0")
set(KF5_DEP_VERSION "5.40.0")
# KDE Application Version, managed by release script
set (KDE_APPLICATIONS_VERSION_MAJOR "19")
set (KDE_APPLICATIONS_VERSION_MINOR "11")
set (KDE_APPLICATIONS_VERSION_MICRO "70")
set (KDE_APPLICATIONS_VERSION "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATIONS_VERSION_MINOR}.${KDE_APPLICATIONS_VERSION_MICRO}")
# KDE Applications version, managed by release script.
set(KDE_APPLICATIONS_VERSION_MAJOR "19")
set(KDE_APPLICATIONS_VERSION_MINOR "11")
set(KDE_APPLICATIONS_VERSION_MICRO "70")
set(KDE_APPLICATIONS_VERSION "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATIONS_VERSION_MINOR}.${KDE_APPLICATIONS_VERSION_MICRO}")
# we need some parts of the ECM CMake helpers
find_package (ECM ${KF5_DEP_VERSION} REQUIRED NO_MODULE)
set (CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(ECMOptionalAddSubdirectory)
include(ECMInstallIcons)
include(ECMSetupVersion)
include(ECMMarkNonGuiExecutable)
include(ECMGenerateHeaders)
include(ECMAddAppIcon)
include(GenerateExportHeader)
include(CMakePackageConfigHelpers)
include(FeatureSummary)
include(WriteBasicConfigVersionFile)
include (CheckFunctionExists)
include(KDEInstallDirs)
include(KDECMakeSettings)
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Core DBus Widgets Sql)
# We need some parts of the ECM CMake helpers.
find_package(ECM ${KF5_DEP_VERSION} QUIET REQUIRED NO_MODULE)
if(BUILD_TESTING)
find_package(Qt5Test ${QT_MIN_VERSION} CONFIG REQUIRED)
endif()
# Load the frameworks we need
find_package(KF5 "${KF5_DEP_VERSION}" REQUIRED COMPONENTS
Config
Crash
I18n
JobWidgets
KIO
Parts
TextEditor
WindowSystem
XmlGui
IconThemes
)
# some optional deps, to make compiling on some OSes easier
find_package(KF5 "${KF5_DEP_VERSION}" COMPONENTS
Activities
DocTools
)
# We append to the module path so modules can be overriden from the command line.
list(APPEND CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
# Allow adding Qt resource files with `add_executable` or `target_sources` instead of
# `qt5_add_resources`. See https://cmake.org/cmake/help/v3.0/manual/cmake-qt.7.html#autorcc.
set(CMAKE_AUTORCC ON)
# kwrite
ecm_optional_add_subdirectory (kwrite)
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(KDEInstallDirs)
include(KDECMakeSettings)
# kate application
ecm_optional_add_subdirectory (kate)
include(ECMOptionalAddSubdirectory)
include(ECMAddAppIcon)
include(ECMInstallIcons)
# addons, e.g. kate plugins, plasma applets, ...
ecm_optional_add_subdirectory (addons)
include(FeatureSummary)
# docs, if doc tools around
if (KF5DocTools_FOUND)
ecm_optional_add_subdirectory (doc)
endif ()
ecm_optional_add_subdirectory(addons)
ecm_optional_add_subdirectory(kwrite)
ecm_optional_add_subdirectory(kate)
ecm_optional_add_subdirectory(doc)
# tell about our features (and what is missing)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
feature_summary(INCLUDE_QUIET_PACKAGES WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
#
# The Kate Application
#
project(kate)
# We use an intermediate static library because linking tests directly to an executable is not
# possible with CMake yet.
add_library(kate STATIC "")
# Load the frameworks we need
find_package(KF5 REQUIRED COMPONENTS DBusAddons GuiAddons)
configure_file(config.h.in config.h)
configure_file(config.h.in config.h) # config.h
# Let our config.h be found first.
include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
# includes
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/session
${CMAKE_CURRENT_SOURCE_DIR}/qtsingleapplication
include(GenerateExportHeader)
generate_export_header(
kate
EXPORT_FILE_NAME katetests_export.h
EXPORT_MACRO_NAME KATE_TESTS_EXPORT
)
# collect the needed source files
set (KATE_LIBRARY_SRCS
kateappadaptor.cpp
kateapp.cpp
kateconfigdialog.cpp
kateconfigplugindialogpage.cpp
katedocmanager.cpp
katefileactions.cpp
katemainwindow.cpp
katepluginmanager.cpp
kateviewmanager.cpp
kateviewspace.cpp
katesavemodifieddialog.cpp
katemwmodonhddialog.cpp
katecolorschemechooser.cpp
katequickopenmodel.cpp
katetabbutton.cpp
katetabbar.cpp
# session
session/katesessionsaction.cpp
session/katesessionmanager.cpp
session/katesessionmanagedialog.cpp
session/katesession.cpp
katemdi.cpp
katerunninginstanceinfo.cpp
katequickopen.cpp
katewaiter.h
katewaiter.cpp
target_include_directories(
kate
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/session
${CMAKE_CURRENT_SOURCE_DIR}/qtsingleapplication
${CMAKE_CURRENT_BINARY_DIR} # katetests_export.h + config.h
)
ki18n_wrap_ui(KATE_LIBRARY_SRCS
ui/sessionconfigwidget.ui
session/katesessionmanagedialog.ui
find_package(
KF5
QUIET
REQUIRED
COMPONENTS
TextEditor
IconThemes
WindowSystem
DBusAddons
Crash
OPTIONAL_COMPONENTS
Activities
)
qt5_add_resources( KATE_LIBRARY_SRCS data/kate.qrc )
add_library(kdeinit_kate STATIC ${KATE_LIBRARY_SRCS})
target_link_libraries(kdeinit_kate
PUBLIC
target_link_libraries(
kate
PUBLIC
KF5::TextEditor
KF5::I18n
KF5::IconThemes
KF5::WindowSystem
KF5::GuiAddons
KF5::WindowSystem
KF5::DBusAddons
KF5::Crash)
KF5::Crash
)
if(KF5Activities_FOUND)
target_link_libraries(kdeinit_kate
PUBLIC
KF5::Activities)
target_link_libraries(kate PUBLIC KF5::Activities)
endif()
generate_export_header(kdeinit_kate
EXPORT_FILE_NAME katetests_export.h
EXPORT_MACRO_NAME KATE_TESTS_EXPORT
)
# collect icons
set(KATE_ICONS_PNG
${CMAKE_CURRENT_SOURCE_DIR}/icons/16-apps-kate.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/22-apps-kate.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/32-apps-kate.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/48-apps-kate.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/64-apps-kate.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/128-apps-kate.png
)
ki18n_wrap_ui(UI_SOURCES ui/sessionconfigwidget.ui session/katesessionmanagedialog.ui)
target_sources(kate PRIVATE ${UI_SOURCES})
set(KATE_ICONS_SVG
${CMAKE_CURRENT_SOURCE_DIR}/icons/sc-apps-kate.svgz
set(ICONS_PNG
${CMAKE_CURRENT_SOURCE_DIR}/icons/16-apps-kate.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/22-apps-kate.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/32-apps-kate.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/48-apps-kate.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/64-apps-kate.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/128-apps-kate.png
)
# application only sources
set (KATE_APP_SRCS
main.cpp
set(ICONS_SVG ${CMAKE_CURRENT_SOURCE_DIR}/icons/sc-apps-kate.svgz)
# Add icon files to the application's source files to have CMake bundle them in the executable.
ecm_add_app_icon(ICONS_SOURCES ICONS ${ICONS_PNG})
target_sources(kate PRIVATE ${ICONS_SOURCES})
target_sources(
kate
PRIVATE
data/kate.qrc
session/katesession.cpp
session/katesessionmanagedialog.cpp
session/katesessionmanager.cpp
session/katesessionsaction.cpp
kateapp.cpp
kateappadaptor.cpp
katecolorschemechooser.cpp
kateconfigdialog.cpp
kateconfigplugindialogpage.cpp
katedocmanager.cpp
katefileactions.cpp
katemainwindow.cpp
katemdi.cpp
katemwmodonhddialog.cpp
katepluginmanager.cpp
katequickopen.cpp
katequickopenmodel.cpp
katerunninginstanceinfo.cpp
katesavemodifieddialog.cpp
katetabbar.cpp
katetabbutton.cpp
kateviewmanager.cpp
kateviewspace.cpp
katewaiter.cpp
)
# use single application instead of dbus on mac + windows
if (APPLE OR WIN32)
set(singleapp_SRCS
qtsingleapplication/qtlocalpeer.cpp
qtsingleapplication/qtsingleapplication.cpp
qtsingleapplication/qtlockedfile.cpp
)
if(WIN32)
set(singleapp_SRCS ${singleapp_SRCS} qtsingleapplication/qtlockedfile_win.cpp)
else()
set(singleapp_SRCS ${singleapp_SRCS} qtsingleapplication/qtlockedfile_unix.cpp)
endif()
add_definitions("-DUSE_QT_SINGLE_APP")
set(KATE_APP_SRCS ${KATE_APP_SRCS} ${singleapp_SRCS})
# Use a single application on MacOS + Windows instead of dbus.
if(APPLE OR WIN32)
target_compile_definitions(kate PRIVATE USE_QT_SINGLE_APP)
target_sources(
kate
PRIVATE
qtsingleapplication/qtlocalpeer.cpp
qtsingleapplication/qtsingleapplication.cpp
qtsingleapplication/qtlockedfile.cpp
)
if(WIN32)
target_sources(kate PRIVATE qtsingleapplication/qtlockedfile_win.cpp)
else()
target_sources(kate PRIVATE qtsingleapplication/qtlockedfile_unix.cpp)
endif()
endif()
# add icons to application sources, to have them bundled
ecm_add_app_icon(KATE_APP_SRCS ICONS ${KATE_ICONS_PNG})
# Executable only adds the main definition.
add_executable(kate-bin main.cpp)
target_link_libraries(kate-bin PRIVATE kate)
# create executable
add_executable(kate ${KATE_APP_SRCS})
target_link_libraries(kate kdeinit_kate)
set_property(
TARGET kate-bin
PROPERTY OUTPUT_NAME kate
)
# own plist magic for mac os
# See https://cmake.org/cmake/help/v3.15/prop_tgt/MACOSX_BUNDLE_INFO_PLIST.html
if(APPLE)
# own plist template
set_target_properties (kate PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/data/MacOSXBundleInfo.plist.in)
# the MacOSX bundle display name property (CFBundleDisplayName) is not currently supported by cmake,
# so has to be set for all targets in this cmake file
set(MACOSX_BUNDLE_DISPLAY_NAME Kate)
set_target_properties(kate PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.Kate")
set_target_properties(kate PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Kate")
set_target_properties(kate PROPERTIES MACOSX_BUNDLE_DISPLAY_NAME "Kate")
set_target_properties(kate PROPERTIES MACOSX_BUNDLE_INFO_STRING "Kate - Advanced Text Editor")
set_target_properties(kate PROPERTIES MACOSX_BUNDLE_LONG_VERSION_STRING "Kate ${KDE_APPLICATIONS_VERSION}")
set_target_properties(kate PROPERTIES MACOSX_BUNDLE_SHORT_VERSION_STRING "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATIONS_VERSION_MINOR}")
set_target_properties(kate PROPERTIES MACOSX_BUNDLE_BUNDLE_VERSION "${KDE_APPLICATIONS_VERSION}")
set_target_properties(kate PROPERTIES MACOSX_BUNDLE_COPYRIGHT "2000-2016 The Kate Authors")
set_property(
TARGET kate-bin
PROPERTY MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/data/MacOSXBundleInfo.plist.in
)
# These are substituted by CMake into plist.in.
set(MACOSX_BUNDLE_DISPLAY_NAME "Kate")
set(MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.Kate")
set(MACOSX_BUNDLE_BUNDLE_NAME "Kate")
set(MACOSX_BUNDLE_DISPLAY_NAME "Kate")
set(MACOSX_BUNDLE_INFO_STRING "Kate - Advanced Text Editor")
set(MACOSX_BUNDLE_LONG_VERSION_STRING "Kate ${KDE_APPLICATIONS_VERSION}")
set(MACOSX_BUNDLE_SHORT_VERSION_STRING "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATIONS_VERSION_MINOR}")
set(MACOSX_BUNDLE_BUNDLE_VERSION "${KDE_APPLICATIONS_VERSION}")
set(MACOSX_BUNDLE_COPYRIGHT "2000-2016 The Kate Authors")
endif()
# install executable
install(TARGETS kate ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(TARGETS kate-bin ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
# desktop file
install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/data/org.kde.kate.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
ecm_install_icons(
ICONS ${ICONS_PNG} ${ICONS_SVG}
DESTINATION ${ICON_INSTALL_DIR}
THEME hicolor
)
# appdata
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/org.kde.kate.appdata.xml DESTINATION ${CMAKE_INSTALL_METAINFODIR})
install(
PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/data/org.kde.kate.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR}
)
# install icons
ecm_install_icons(ICONS ${KATE_ICONS_PNG} ${KATE_ICONS_SVG} DESTINATION ${ICON_INSTALL_DIR} THEME hicolor)
install(
FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/org.kde.kate.appdata.xml
DESTINATION ${CMAKE_INSTALL_METAINFODIR}
)
# automatic unit tests
if (BUILD_TESTING)
add_subdirectory(autotests)
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
......@@ -9,7 +9,7 @@ macro(kate_executable_tests)
target_link_libraries(
${_testname}
PRIVATE
kdeinit_kate
kate
Qt5::Test
)
......
# KWrite
project (kwrite)
# Load the frameworks we need
find_package(KF5 REQUIRED COMPONENTS DBusAddons)
add_executable(kwrite "")
configure_file(config.h.in config.h)
target_include_directories(kwrite PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) # config.h
# Let our config.h be found first.
include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
find_package(
KF5
QUIET
REQUIRED
COMPONENTS
TextEditor
DBusAddons
Crash
OPTIONAL_COMPONENTS
Activities
)
# collect icons
set(KWRITE_ICONS_PNG
${CMAKE_CURRENT_SOURCE_DIR}/icons/16-apps-kwrite.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/22-apps-kwrite.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/32-apps-kwrite.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/48-apps-kwrite.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/64-apps-kwrite.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/128-apps-kwrite.png
target_link_libraries(
kwrite
PUBLIC
KF5::TextEditor
KF5::DBusAddons
KF5::Crash
)
set(KWRITE_ICONS_SVG
${CMAKE_CURRENT_SOURCE_DIR}/icons/sc-apps-kwrite.svgz
if(KF5Activities_FOUND)
target_link_libraries(kwrite PUBLIC KF5::Activities)
endif()
set(ICONS_PNG
${CMAKE_CURRENT_SOURCE_DIR}/icons/16-apps-kwrite.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/22-apps-kwrite.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/32-apps-kwrite.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/48-apps-kwrite.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/64-apps-kwrite.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/128-apps-kwrite.png
)
# collect the sources
set (KWRITE_APPLICATION_SRCS main.cpp kwrite.cpp kwriteapplication.cpp)
qt5_add_resources(KWRITE_APPLICATION_SRCS data/kwrite.qrc)
set(ICONS_SVG ${CMAKE_CURRENT_SOURCE_DIR}/icons/sc-apps-kwrite.svgz)
# add icons to application sources, to have them bundled
ecm_add_app_icon(KWRITE_APPLICATION_SRCS ICONS ${KWRITE_ICONS_PNG})
# Add icon files to the application's source files to have CMake bundle them in the executable.
ecm_add_app_icon(ICONS_SOURCES ICONS ${ICONS_PNG})
target_sources(kwrite PRIVATE ${ICONS_SOURCES})
# build KWrite application
add_executable(kwrite ${KWRITE_APPLICATION_SRCS})
target_link_libraries(kwrite
PUBLIC
KF5::TextEditor
KF5::I18n
KF5::DBusAddons
KF5::Crash
target_sources(
kwrite
PRIVATE
data/kwrite.qrc
kwrite.cpp
kwriteapplication.cpp
main.cpp
)
if(KF5Activities_FOUND)
target_link_libraries(kwrite
PUBLIC
KF5::Activities)
endif()
# own plist magic for mac os
# See https://cmake.org/cmake/help/v3.15/prop_tgt/MACOSX_BUNDLE_INFO_PLIST.html
if(APPLE)
# own plist template
set_target_properties (kwrite PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/data/MacOSXBundleInfo.plist.in)
set_property(
TARGET kwrite
PROPERTY MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/data/MacOSXBundleInfo.plist.in
)
# the MacOSX bundle display name property (CFBundleDisplayName) is not currently supported by cmake,
# so has to be set for all targets in this cmake file
set(MACOSX_BUNDLE_DISPLAY_NAME KWrite)
set_target_properties(kwrite PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.KWrite")
set_target_properties(kwrite PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "KWrite")
set_target_properties(kwrite PROPERTIES MACOSX_BUNDLE_DISPLAY_NAME "KWrite")
set_target_properties(kwrite PROPERTIES MACOSX_BUNDLE_INFO_STRING "KWrite - Text Editor")
set_target_properties(kwrite PROPERTIES MACOSX_BUNDLE_LONG_VERSION_STRING "KWrite ${KDE_APPLICATIONS_VERSION}")
set_target_properties(kwrite PROPERTIES MACOSX_BUNDLE_SHORT_VERSION_STRING "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATIONS_VERSION_MINOR}")
set_target_properties(kwrite PROPERTIES MACOSX_BUNDLE_BUNDLE_VERSION "${KDE_APPLICATIONS_VERSION}")
set_target_properties(kwrite PROPERTIES MACOSX_BUNDLE_COPYRIGHT "2000-2016 The KWrite Authors")
# These are substituted by CMake into plist.in.
set(MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.KWrite")
set(MACOSX_BUNDLE_BUNDLE_NAME "KWrite")
set(MACOSX_BUNDLE_DISPLAY_NAME "KWrite")
set(MACOSX_BUNDLE_INFO_STRING "KWrite - Text Editor")
set(MACOSX_BUNDLE_LONG_VERSION_STRING "KWrite ${KDE_APPLICATIONS_VERSION}")
set(MACOSX_BUNDLE_SHORT_VERSION_STRING "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATIONS_VERSION_MINOR}")
set(MACOSX_BUNDLE_BUNDLE_VERSION "${KDE_APPLICATIONS_VERSION}")
set(MACOSX_BUNDLE_COPYRIGHT "2000-2016 The KWrite Authors")
endif()
# install executable
install(TARGETS kwrite ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
# desktop file
install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/data/org.kde.kwrite.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
install(
FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/org.kde.kwrite.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR}
)
# appdata
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/org.kde.kwrite.appdata.xml DESTINATION ${CMAKE_INSTALL_METAINFODIR})
install(
FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/org.kde.kwrite.appdata.xml
DESTINATION ${CMAKE_INSTALL_METAINFODIR}
)
# install icons
ecm_install_icons(ICONS ${KWRITE_ICONS_PNG} ${KWRITE_ICONS_SVG} DESTINATION ${ICON_INSTALL_DIR} THEME hicolor)
ecm_install_icons(
ICONS ${ICONS_PNG} ${ICONS_SVG}
DESTINATION ${ICON_INSTALL_DIR}
THEME hicolor
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment