forked from Elv13/Umbrello-ng2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
47 lines (36 loc) · 1.27 KB
/
CMakeLists.txt
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
47
project(umbrello)
cmake_minimum_required(VERSION 2.8)
# guard against in-source builds
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
message(FATAL_ERROR "In-source builds not allowed. Please make a new directory (called a build directory) and run CMake from there. You may need to remove CMakeCache.txt.")
endif()
set(KDE4_BUILD_TESTS ON) # for unit tests
# search packages used by KDE
#set(QT_MIN_VERSION "4.7.0")
#find_package(Qt4 REQUIRED)
find_package(KDE4 REQUIRED)
include(KDE4Defaults)
include(MacroLibrary)
include(CheckIncludeFile)
include(CheckIncludeFileCXX)
include(CheckLibraryExists)
# The FindKDE4.cmake module sets _KDE4_PLATFORM_DEFINITIONS with
# definitions like _GNU_SOURCE that are needed on each platform.
set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS} -DQT_STRICT_ITERATORS)
find_package(LibXslt REQUIRED)
find_package(LibXml2 REQUIRED)
set(Boost_MINIMUM_VERSION 1.33.1)
find_package(Boost REQUIRED)
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS} -DQT3_SUPPORT)
include_directories(
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${KDE4_INCLUDES}
)
macro_display_feature_log()
add_subdirectory(umbrello)
# do we build the unit tests
IF(KDE4_BUILD_TESTS)
ENABLE_TESTING()
add_subdirectory(unittests)
ENDIF(KDE4_BUILD_TESTS)