diff --git a/CMakeLists.txt b/CMakeLists.txt index 7498eaf4d..8bdf0a3f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,7 +77,6 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED ConfigWidgets CoreAddons Crash - GlobalAccel GuiAddons DBusAddons I18n @@ -88,7 +87,6 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED Notifications NotifyConfig Parts - Pty Service TextWidgets WidgetsAddons @@ -96,6 +94,13 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED XmlGui ) +if (NOT WIN32) + find_package(KF5 ${KF5_MIN_VERSION} REQUIRED + GlobalAccel + Pty + ) +endif() + find_package(KF5DocTools ${KF5_MIN_VERSION}) set_package_properties(KF5DocTools PROPERTIES DESCRIPTION "Tools to generate documentation" @@ -139,7 +144,11 @@ option(ENABLE_PLUGIN_QUICKCOMMANDS "Build the Quick Commands plugin" ON) add_subdirectory( src ) add_subdirectory( data ) add_subdirectory( desktop ) + +if (NOT WIN32) add_subdirectory( kconf_update ) +endif() + if (KF5DocTools_FOUND) add_subdirectory( doc/manual ) endif() diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4638d0ed9..f11a58f8e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -21,9 +21,11 @@ configure_file(config-konsole.h.cmake ### Tests if(BUILD_TESTING) - find_package(Qt${QT_MAJOR_VERSION}Test ${QT_MIN_VERSION} CONFIG REQUIRED) - add_subdirectory(autotests) - add_subdirectory(tests) + if (NOT WIN32) + find_package(Qt${QT_MAJOR_VERSION}Test ${QT_MIN_VERSION} CONFIG REQUIRED) + add_subdirectory(autotests) + add_subdirectory(tests) + endif() endif() ### Security concerns about sendText and runCommand dbus methods being public @@ -59,13 +61,18 @@ set(konsole_LIBS KF5::IconThemes KF5::Bookmarks KF5::I18n - KF5::Pty KF5::KIOWidgets KF5::DBusAddons - KF5::GlobalAccel KF5::NewStuff ) +if (NOT WIN32) + list(APPEND konsole_LIBS + KF5::Pty + KF5::GlobalAccel + ) +endif() + if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") #kinfo_getfile() is in libutil list(APPEND konsole_LIBS util)