Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show All 36 Lines | |||||
37 | add_definitions( | 37 | add_definitions( | ||
38 | -DQT_DEPRECATED_WARNINGS | 38 | -DQT_DEPRECATED_WARNINGS | ||
39 | -DQT_DISABLE_DEPRECATED_BEFORE=0x050700 | 39 | -DQT_DISABLE_DEPRECATED_BEFORE=0x050700 | ||
40 | -DQT_NO_SIGNALS_SLOTS_KEYWORDS | 40 | -DQT_NO_SIGNALS_SLOTS_KEYWORDS | ||
41 | -DQT_NO_URL_CAST_FROM_STRING | 41 | -DQT_NO_URL_CAST_FROM_STRING | ||
42 | -DQT_STRICT_ITERATORS | 42 | -DQT_STRICT_ITERATORS | ||
43 | ) | 43 | ) | ||
44 | 44 | | |||
45 | | ||||
46 | # Find KArchive | ||||
47 | find_package(KF5Archive) | ||||
48 | set_package_properties(KF5Archive PROPERTIES | ||||
heikobecker: Would be nice to add a PURPOSE to properties, especially because the connection KF5Archive <->… | |||||
49 | PURPOSE "Needed for ODF plugin" | ||||
50 | TYPE OPTIONAL) | ||||
51 | | ||||
45 | # Find taglib | 52 | # Find taglib | ||
46 | set(TAGLIB_MIN_VERSION "1.5") | 53 | set(TAGLIB_MIN_VERSION "1.5") | ||
47 | find_package(Taglib ${TAGLIB_MIN_VERSION}) | 54 | find_package(Taglib ${TAGLIB_MIN_VERSION}) | ||
48 | set_package_properties(Taglib PROPERTIES | 55 | set_package_properties(Taglib PROPERTIES | ||
49 | DESCRIPTION "Read and write tags in audio files" | 56 | DESCRIPTION "Read and write tags in audio files" | ||
50 | URL "https://taglib.github.io/" | 57 | URL "https://taglib.github.io/" | ||
51 | TYPE OPTIONAL) | 58 | TYPE OPTIONAL) | ||
52 | 59 | | |||
Show All 21 Lines | |||||
74 | feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) | 81 | feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) | ||
75 | 82 | | |||
76 | 83 | | |||
77 | # Update configuration | 84 | # Update configuration | ||
78 | include(MacroBoolTo01) | 85 | include(MacroBoolTo01) | ||
79 | macro_bool_to_01(TAGLIB_FOUND HAVE_TAGLIB) | 86 | macro_bool_to_01(TAGLIB_FOUND HAVE_TAGLIB) | ||
80 | macro_bool_to_01(EXIV2_FOUND HAVE_EXIV2) | 87 | macro_bool_to_01(EXIV2_FOUND HAVE_EXIV2) | ||
81 | macro_bool_to_01(PoDoFo_FOUND HAVE_PODOFO) | 88 | macro_bool_to_01(PoDoFo_FOUND HAVE_PODOFO) | ||
89 | macro_bool_to_01(KF5Archive_FOUND HAVE_KARCHIVE) | ||||
82 | macro_bool_to_01(FREETYPE_FOUND HAVE_FREETYPE) | 90 | macro_bool_to_01(FREETYPE_FOUND HAVE_FREETYPE) | ||
83 | configure_file(config-krename.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-krename.h) | 91 | configure_file(config-krename.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-krename.h) | ||
84 | 92 | | |||
85 | # Directories | 93 | # Directories | ||
86 | 94 | | |||
87 | add_subdirectory(src) | 95 | add_subdirectory(src) | ||
88 | add_subdirectory(autotests) | 96 | add_subdirectory(autotests) |
Would be nice to add a PURPOSE to properties, especially because the connection KF5Archive <-> ODF might not be that obvious.