2007-06-25 21:20:52 +00:00
|
|
|
project(KDEBASE_APPS)
|
|
|
|
|
2008-02-04 16:30:15 +00:00
|
|
|
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules )
|
|
|
|
|
2012-01-18 13:08:29 +00:00
|
|
|
include(CTest)
|
|
|
|
include(CTestConfig.cmake)
|
|
|
|
|
2007-06-25 21:20:52 +00:00
|
|
|
#search packages used by KDE
|
2012-12-30 10:59:35 +00:00
|
|
|
find_package(KDE4 4.9.80 REQUIRED)
|
2007-06-25 21:20:52 +00:00
|
|
|
include (KDE4Defaults)
|
2012-12-30 10:59:35 +00:00
|
|
|
|
|
|
|
find_package(Strigi)
|
|
|
|
set_package_properties(Strigi PROPERTIES DESCRIPTION "Desktop indexing and search support"
|
|
|
|
URL "http://strigi.sourceforge.net"
|
|
|
|
TYPE REQUIRED
|
|
|
|
)
|
|
|
|
|
|
|
|
find_package(ZLIB)
|
|
|
|
set_package_properties(ZLIB PROPERTIES DESCRIPTION "Support for gzip compressed files and data streams"
|
|
|
|
URL "http://www.zlib.net"
|
|
|
|
TYPE REQUIRED
|
|
|
|
PURPOSE "Required for building Konqueror"
|
|
|
|
)
|
2007-06-25 21:20:52 +00:00
|
|
|
|
2012-10-13 17:56:21 +00:00
|
|
|
find_package(KActivities 6.1.0)
|
2012-12-30 10:59:35 +00:00
|
|
|
set_package_properties(KActivities PROPERTIES DESCRIPTION "Interface library for the activity manager"
|
|
|
|
URL "https://projects.kde.org/kactivities"
|
|
|
|
TYPE RECOMMENDED
|
|
|
|
PURPOSE "Needed for Dolphin integration with activities"
|
|
|
|
)
|
2012-08-10 15:49:39 +00:00
|
|
|
|
2007-07-14 21:07:22 +00:00
|
|
|
include(ConfigureChecks.cmake)
|
2007-06-25 21:20:52 +00:00
|
|
|
configure_file (config-apps.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-apps.h )
|
|
|
|
include_directories (${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
2010-08-05 11:30:26 +00:00
|
|
|
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS} -DDISABLE_NEPOMUK_LEGACY)
|
2011-05-22 11:04:04 +00:00
|
|
|
add_definitions (-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
|
2007-06-25 21:20:52 +00:00
|
|
|
include_directories (${CMAKE_CURRENT_SOURCE_DIR}/lib/konq ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
|
|
|
|
|
2012-08-10 15:49:39 +00:00
|
|
|
if ( KActivities_FOUND )
|
|
|
|
include_directories (${KACTIVITIES_INCLUDE_DIR})
|
|
|
|
endif ( KActivities_FOUND )
|
|
|
|
|
2011-02-09 17:46:38 +00:00
|
|
|
add_subdirectory( lib )
|
2007-02-14 16:03:42 +00:00
|
|
|
add_subdirectory( dolphin )
|
2011-02-09 17:46:38 +00:00
|
|
|
add_subdirectory( kdialog )
|
|
|
|
add_subdirectory( keditbookmarks )
|
|
|
|
add_subdirectory( konqueror )
|
|
|
|
add_subdirectory( kfind )
|
|
|
|
add_subdirectory( plasma )
|
|
|
|
add_subdirectory( konq-plugins )
|
2007-06-10 04:53:17 +00:00
|
|
|
|
|
|
|
if ( Q_WS_MAC )
|
2011-02-09 17:46:38 +00:00
|
|
|
add_subdirectory( kdepasswd )
|
2007-06-10 04:53:17 +00:00
|
|
|
endif ( Q_WS_MAC )
|
|
|
|
|
2007-05-14 14:49:22 +00:00
|
|
|
if ( Q_WS_X11 )
|
2011-02-09 17:46:38 +00:00
|
|
|
add_subdirectory( nsplugins )
|
|
|
|
add_subdirectory( kdepasswd )
|
2007-05-14 14:49:22 +00:00
|
|
|
endif ( Q_WS_X11 )
|
2011-02-09 17:46:38 +00:00
|
|
|
macro_optional_add_subdirectory( doc )
|
2008-06-03 17:33:05 +00:00
|
|
|
|
2012-12-30 10:59:35 +00:00
|
|
|
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
|