mirror of
https://github.com/KDE/konsole.git
synced 2025-12-23 23:38:08 -05:00
Make konsole cmake configurable on windows
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user