Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show All 37 Lines | 34 | add_definitions( | |||
---|---|---|---|---|---|
38 | -DQT_NO_URL_CAST_FROM_STRING | 38 | -DQT_NO_URL_CAST_FROM_STRING | ||
39 | -DQT_STRICT_ITERATORS | 39 | -DQT_STRICT_ITERATORS | ||
40 | ) | 40 | ) | ||
41 | 41 | | |||
42 | set(KRENAME_VERSION "5.0.60") | 42 | set(KRENAME_VERSION "5.0.60") | ||
43 | 43 | | |||
44 | include(FindGettext) | 44 | include(FindGettext) | ||
45 | 45 | | |||
46 | # Find KArchive | ||||
47 | find_package(KF5Archive) | ||||
48 | set_package_properties(KF5Archive PROPERTIES | ||||
49 | PURPOSE "Needed for ODF plugin" | ||||
heikobecker: Would be nice to add a PURPOSE to properties, especially because the connection KF5Archive <->… | |||||
50 | TYPE OPTIONAL) | ||||
51 | | ||||
46 | # Find taglib | 52 | # Find taglib | ||
47 | set(TAGLIB_MIN_VERSION "1.5") | 53 | set(TAGLIB_MIN_VERSION "1.5") | ||
48 | find_package(Taglib ${TAGLIB_MIN_VERSION}) | 54 | find_package(Taglib ${TAGLIB_MIN_VERSION}) | ||
49 | set_package_properties(Taglib PROPERTIES | 55 | set_package_properties(Taglib PROPERTIES | ||
50 | DESCRIPTION "Read and write tags in audio files" | 56 | DESCRIPTION "Read and write tags in audio files" | ||
51 | URL "https://taglib.github.io/" | 57 | URL "https://taglib.github.io/" | ||
52 | TYPE OPTIONAL) | 58 | TYPE OPTIONAL) | ||
53 | 59 | | |||
Show All 21 Lines | |||||
75 | 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) | ||
76 | 82 | | |||
77 | 83 | | |||
78 | # Update configuration | 84 | # Update configuration | ||
79 | include(MacroBoolTo01) | 85 | include(MacroBoolTo01) | ||
80 | macro_bool_to_01(TAGLIB_FOUND HAVE_TAGLIB) | 86 | macro_bool_to_01(TAGLIB_FOUND HAVE_TAGLIB) | ||
81 | macro_bool_to_01(EXIV2_FOUND HAVE_EXIV2) | 87 | macro_bool_to_01(EXIV2_FOUND HAVE_EXIV2) | ||
82 | 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) | ||||
83 | macro_bool_to_01(FREETYPE_FOUND HAVE_FREETYPE) | 90 | macro_bool_to_01(FREETYPE_FOUND HAVE_FREETYPE) | ||
84 | 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) | ||
85 | 92 | | |||
86 | # Directories | 93 | # Directories | ||
87 | 94 | | |||
88 | add_subdirectory(src) | 95 | add_subdirectory(src) | ||
89 | 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.