mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-06 07:09:03 +08:00
d0ce2aa08b
* [kf5*] Update to 5.87
* [kf5*] Wrap paths in quotes
* [kf5*] Use current portfile spec
* [kf5*] Add missing PACKAGE_NAME where applicable
* [kf5config] use vcpkg_copy_tools to copy tools
* [kf5*] Install data files to a standard /share location
* [kf5sonnet] use vcpkg_copy_tools to copy tools
* [kf5*] no need to remove non-existent folders
* [kf5windowsystem] link against XCB when building statically
* [kf5dbusaddons] link against X11Extras when building statically
* [kf5syntaxhighlighting] handle /qml and /bin dirs
* [kf5*] KDE_INSTALL_QMLDIR instead moving by hand
* [kf5syntaxhighlighting] install kate-syntax-highlighter tool
* [kf5*] Formatting
* [kf5config] copy libexec tools to correct subfolders on *nix
* [kf5globalaccel] Make XCB XTEST optional requirement
* [kf5kio] Find LibMount when building statically
* [kf5kio] Revert blkid usage
221a94a66c
* [kf5*] Disable any doc leftovers
* [kf5*] update versions
* [kf5sonnet] don't build examples
* [kf5*] update versions
* [ecm] vcpkg-cmake-config dependency is extraneous
* [kf5kio] formatting
* [kf5*] update versions
27 lines
1.0 KiB
Diff
27 lines
1.0 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 8d490ff73d3ff444e994ccd04fbc7000ce954113..c2c2369ce4622800f21d16d5019e4cfad4d4a9c6 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -4,6 +4,7 @@ set(KF_VERSION "5.88.0") # handled by release scripts
|
|
project(Sonnet VERSION ${KF_VERSION})
|
|
|
|
include(FeatureSummary)
|
|
+include(CMakeDependentOption)
|
|
find_package(ECM 5.87.0 NO_MODULE)
|
|
set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://commits.kde.org/extra-cmake-modules")
|
|
feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
|
@@ -63,11 +64,11 @@ if (BUILD_TESTING)
|
|
add_subdirectory(autotests)
|
|
endif()
|
|
|
|
-if(TARGET Qt5::Widgets)
|
|
+cmake_dependent_option(BUILD_EXAMPLES "Whether to build the examples" OFF "SONNET_USE_WIDGETS" OFF)
|
|
+if (BUILD_EXAMPLES)
|
|
add_subdirectory(examples)
|
|
endif()
|
|
|
|
-
|
|
# create a Config.cmake and a ConfigVersion.cmake file and install them
|
|
set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF5Sonnet")
|
|
|