Make konsole cmake configurable on windows

This commit is contained in:
Waqar Ahmed
2023-02-20 12:18:35 +05:00
parent a4789d7ad7
commit 59a7626add
2 changed files with 23 additions and 7 deletions

View File

@@ -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()

View File

@@ -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)