File: CMakeLists.txt

package info (click to toggle)
komparator 4:1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,900 kB
  • ctags: 723
  • sloc: cpp: 9,602; sh: 54; makefile: 2
file content (46 lines) | stat: -rw-r--r-- 1,245 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
project(KOMPARATOR4)
find_package(KDE4 REQUIRED)
find_package(KDE4Internal REQUIRED)
find_package(LibKonq REQUIRED)

# backward compatibility to <= KDE 4.1
MACRO_ENSURE_VERSION( "4.3.0" ${KDE_VERSION} KDE_VERSION_OK)
if(NOT KDE_VERSION_OK)
  macro_optional_find_package(Plasma)
  macro_log_feature(PLASMA_FOUND "Plasma" "Plasma libraries and header files" "http://plasma.kde.org/" FALSE "" "Plasma is needed for KTorrent Plasmoid")
else(NOT KDE_VERSION_OK)
  set(PLASMA_FOUND true)
  set(PLASMA_LIBS ${KDE4_PLASMA_LIBS})
endif(NOT KDE_VERSION_OK)

# set some default settings
include(KDE4Defaults)

# make some more macros available
include (MacroLibrary)
#
# checks for functions and stuff
#
include(CheckIncludeFiles)
include(CheckFunctionExists)
include(CheckTypeSize) #XFS


# according to http://www.cmake.org/pipermail/cmake/2008-June/022381.html
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
add_definitions( ${KDE4_DEFINITIONS} )

include_directories( ${KDE4_INCLUDES}
   ${KOMPARATOR4_BINARY_DIR}
   ${KOMPARATOR4_BINARY_DIR}/src
   )

add_subdirectory(src)
add_subdirectory(doc)

# --- show log ---
macro_display_feature_log()

#find_package(Msgfmt REQUIRED)
find_package(Gettext REQUIRED)
add_subdirectory( po )