CMakeLists.txt 1.39 KB
Newer Older
Dirk Mueller's avatar
Dirk Mueller committed
1 2
project(KDEBASE_APPS)

3 4 5
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules )

Dirk Mueller's avatar
Dirk Mueller committed
6
#search packages used by KDE
Dirk Mueller's avatar
Dirk Mueller committed
7 8
set(KDE_MIN_VERSION "4.2.98")  # for the < 4.2 macro
find_package(KDE4 4.2.98 REQUIRED)
Dirk Mueller's avatar
Dirk Mueller committed
9
find_package(Strigi REQUIRED)
10
find_package(ZLIB REQUIRED)
Dirk Mueller's avatar
Dirk Mueller committed
11 12 13
include (KDE4Defaults)
include (MacroLibrary)

14
include(ConfigureChecks.cmake)
Dirk Mueller's avatar
Dirk Mueller committed
15 16 17
configure_file (config-apps.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-apps.h )
include_directories (${CMAKE_CURRENT_BINARY_DIR})

18
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
Dirk Mueller's avatar
Dirk Mueller committed
19 20 21
include_directories (${CMAKE_CURRENT_SOURCE_DIR}/lib/konq ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})

add_subdirectory( lib )
22
add_subdirectory( dolphin )
23 24
add_subdirectory( kwrite )
add_subdirectory( kdialog )
25
add_subdirectory( keditbookmarks )
David Faure's avatar
David Faure committed
26
add_subdirectory( konqueror )
27 28
add_subdirectory( kfind )
add_subdirectory( kappfinder )
Carlo Segato's avatar
Carlo Segato committed
29
add_subdirectory( plasma )
30 31

if ( Q_WS_MAC )
32
  add_subdirectory( konsole )
David Faure's avatar
David Faure committed
33
  add_subdirectory( kdepasswd )
34 35
endif ( Q_WS_MAC )

David Faure's avatar
David Faure committed
36
if ( Q_WS_X11 )
37
  add_subdirectory( kinfocenter )
David Faure's avatar
David Faure committed
38
  add_subdirectory( nsplugins )
39 40
  add_subdirectory( konsole )
  add_subdirectory( kdepasswd )
David Faure's avatar
David Faure committed
41
endif ( Q_WS_X11 )
42
macro_optional_add_subdirectory( doc )
43 44 45 46

if(CMAKE_SOURCE_DIR STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
    macro_display_feature_log()
endif(CMAKE_SOURCE_DIR STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")