Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show All 29 Lines | |||||
30 | include(ECMAddAppIcon) | 30 | include(ECMAddAppIcon) | ||
31 | include(ECMInstallIcons) | 31 | include(ECMInstallIcons) | ||
32 | 32 | | |||
33 | include(FeatureSummary) | 33 | include(FeatureSummary) | ||
34 | 34 | | |||
35 | # forbid some old things | 35 | # forbid some old things | ||
36 | add_definitions(-DQT_NO_FOREACH) | 36 | add_definitions(-DQT_NO_FOREACH) | ||
37 | 37 | | |||
38 | # Required here so that the version comparison below works | ||||
39 | find_package(Qt5Widgets ${QT_MIN_VERSION} CONFIG REQUIRED) | ||||
40 | | ||||
38 | # Qt 5.13 deprecated QComboBox::currentIndexChanged(QString) and Qt 5.14 undid that... | 41 | # Qt 5.13 deprecated QComboBox::currentIndexChanged(QString) and Qt 5.14 undid that... | ||
39 | if (Qt5Widgets_VERSION VERSION_GREATER_EQUAL 5.14.0) | 42 | if (Qt5Widgets_VERSION VERSION_GREATER_EQUAL 5.14.0) | ||
40 | add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00) | 43 | add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00) | ||
41 | endif() | 44 | endif() | ||
42 | 45 | | |||
43 | ecm_optional_add_subdirectory(addons) | 46 | ecm_optional_add_subdirectory(addons) | ||
44 | ecm_optional_add_subdirectory(kwrite) | 47 | ecm_optional_add_subdirectory(kwrite) | ||
45 | ecm_optional_add_subdirectory(kate) | 48 | ecm_optional_add_subdirectory(kate) | ||
Show All 12 Lines |