2
find_package(KDE4 REQUIRED)
3
find_package(KDE4Internal REQUIRED)
5
# backward compatibility to <= KDE 4.1
6
MACRO_ENSURE_VERSION( "4.1.83" ${KDE_VERSION} KDE_VERSION_OK)
8
macro_optional_find_package(Plasma)
9
macro_log_feature(PLASMA_FOUND "Plasma" "Plasma libraries and header files" "http://plasma.kde.org/" FALSE "" "Plasma is needed for KTorrent Plasmoid")
10
else(NOT KDE_VERSION_OK)
11
set(PLASMA_FOUND true)
12
set(PLASMA_LIBS ${KDE4_PLASMA_LIBS})
13
endif(NOT KDE_VERSION_OK)
15
# set some default settings
18
# make some more macros available
19
include (MacroLibrary)
21
# checks for functions and stuff
23
include(CheckIncludeFiles)
24
include(CheckFunctionExists)
25
include(CheckTypeSize) #XFS
28
# according to http://www.cmake.org/pipermail/cmake/2008-June/022381.html
29
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
30
add_definitions( ${KDE4_DEFINITIONS} )
32
include_directories( ${KDE4_INCLUDES}
33
${KOMPARATOR4_BINARY_DIR}
34
${KOMPARATOR4_BINARY_DIR}/src
41
macro_display_feature_log()
43
#find_package(Msgfmt REQUIRED)
44
find_package(Gettext REQUIRED)
45
add_subdirectory( po )