3 set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
5 # search packages used by KDE
6 find_package(KDE4 REQUIRED)
8 find_package(KDEWIN32 REQUIRED)
9 # detect oxygen icon dir at configure time based on KDEDIRS - there may be different package installation locations
10 execute_process(COMMAND "${KDE4_KDECONFIG_EXECUTABLE}" --path icon OUTPUT_VARIABLE _dir ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
11 file(TO_CMAKE_PATH "${_dir}" __dir)
12 find_path(KDE4_ICON_DIR oxygen PATHS
15 message(STATUS "using oxygen application icons from ${KDE4_ICON_DIR}")
17 set (KDE4_ICON_DIR ${CMAKE_INSTALL_PREFIX}/share/icons)
22 include(MacroOptionalAddSubdirectory)
24 add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
25 include_directories (${QDBUS_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
28 add_subdirectory(libkdeedu)
29 macro_optional_add_subdirectory(kalzium)
31 add_subdirectory( cmake )
33 macro_display_feature_log()