Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
- This file was added.
1 | set(kbreezeicons_SRCS | ||||
---|---|---|---|---|---|
2 | main.cpp | ||||
3 | ) | ||||
4 | | ||||
5 | # add our icons for normal mode | ||||
6 | qt5_add_resources(kbreezeicons_SRCS | ||||
7 | ${CMAKE_BINARY_DIR}/icons/res/breeze-icons.qrc | ||||
8 | OPTIONS --root /icons/breeze | ||||
9 | ) | ||||
10 | | ||||
11 | # add our icons for dark mode | ||||
12 | qt5_add_resources(kbreezeicons_SRCS | ||||
13 | ${CMAKE_BINARY_DIR}/icons-dark/res/breeze-icons-dark.qrc | ||||
14 | OPTIONS --root /icons/breeze-dark | ||||
15 | ) | ||||
16 | | ||||
17 | add_library(KF5BreezeIcons ${kbreezeicons_SRCS}) | ||||
18 | add_library(KF5::BreezeIcons ALIAS KF5BreezeIcons) | ||||
19 | ecm_generate_export_header(KF5BreezeIcons | ||||
20 | BASE_NAME BreezeIcons | ||||
21 | GROUP_BASE_NAME KF | ||||
22 | VERSION ${KF5_VERSION} | ||||
23 | DEPRECATED_BASE_VERSION 0 | ||||
24 | DEPRECATION_VERSIONS 4.8 5.0 5.63 5.64 | ||||
25 | EXCLUDE_DEPRECATED_BEFORE_AND_AT ${EXCLUDE_DEPRECATED_BEFORE_AND_AT} | ||||
26 | ) | ||||
27 | | ||||
28 | target_include_directories(KF5BreezeIcons INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/BreezeIcons>") | ||||
29 | | ||||
30 | target_link_libraries(KF5BreezeIcons | ||||
31 | PUBLIC | ||||
32 | Qt5::Gui | ||||
33 | ) | ||||
34 | if (TARGET Qt5::DBus) | ||||
35 | target_link_libraries(KF5BreezeIcons PRIVATE Qt5::DBus) | ||||
36 | endif() | ||||
37 | | ||||
38 | set_target_properties(KF5BreezeIcons PROPERTIES VERSION ${BREEZEICONS_VERSION_STRING} | ||||
39 | SOVERSION ${BREEZEICONS_SOVERSION} | ||||
40 | EXPORT_NAME IconThemes | ||||
41 | ) | ||||
42 | | ||||
43 | install(TARGETS KF5BreezeIcons EXPORT KF5BreezeIconsTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS}) | ||||
44 | | ||||
45 | include(ECMGeneratePriFile) | ||||
46 | ecm_generate_pri_file(BASE_NAME BreezeIcons LIB_NAME KF5BreezeIcons DEPS "gui" FILENAME_VAR PRI_FILENAME INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR_KF5}/BreezeIcons) | ||||
47 | install(FILES ${PRI_FILENAME} DESTINATION ${ECM_MKSPECS_INSTALL_DIR}) |