~ubuntu-branches/ubuntu/vivid/kdesdk/vivid

« back to all changes in this revision

Viewing changes to umbrello/CMakeLists-StandaloneIncl.txt

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-06-14 15:11:09 UTC
  • mfrom: (0.4.22)
  • Revision ID: package-import@ubuntu.com-20120614151109-t9h5vc8qga2sz5yo
Tags: 4:4.8.90-0ubuntu1
New upstream beta release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
MESSAGE(STATUS "kdesdk settings")
2
 
 
3
 
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
4
 
 
5
 
# search packages used by KDE
6
 
find_package(KDE4 REQUIRED)
7
 
include(KDE4Defaults)
8
 
include(MacroLibrary)
9
 
include(CheckIncludeFile)
10
 
include(CheckIncludeFileCXX)
11
 
include(CheckLibraryExists)
12
 
include(CheckCSourceCompiles)
13
 
 
14
 
macro_optional_find_package(KdepimLibs)
15
 
 
16
 
# The FindKDE4.cmake module sets _KDE4_PLATFORM_DEFINITIONS with
17
 
# definitions like _GNU_SOURCE that are needed on each platform.
18
 
set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS} -DQT_STRICT_ITERATORS)
19
 
 
20
 
find_package(Strigi REQUIRED)
21
 
 
22
 
macro_optional_find_package(LibXslt)
23
 
macro_log_feature(LIBXSLT_FOUND "LibXSLT" "A library to transform XMLfiles into other XML files" "http://xmlsoft.org/XSLT" FALSE "" "Required to build Umbrello.")
24
 
macro_optional_find_package(LibXml2)
25
 
macro_log_feature(LIBXML2_FOUND "LibXML2" "Libraries used to develop XML applications" "http://xmlsoft.org" FALSE "" "Required to build Umbrello.")
26
 
 
27
 
set(Boost_MINIMUM_VERSION 1.33.1)
28
 
macro_optional_find_package(Boost)
29
 
macro_log_feature(Boost_FOUND "boost" "Boost C++ Libraries" "http://www.boost.org" FALSE "1.33.1" "Required to build Umbrello.")
30
 
 
31
 
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
32
 
include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} ${KDEPIMLIBS_INCLUDE_DIR})
33
 
 
34
 
check_c_source_compiles("
35
 
#include <stdlib.h>
36
 
 
37
 
int main() {
38
 
#ifndef __GLIBC__
39
 
  choke me
40
 
#endif
41
 
  return 0;
42
 
}" LIBC_IS_GLIBC)
43
 
if (LIBC_IS_GLIBC)
44
 
  macro_optional_add_subdirectory(kmtrace)
45
 
endif ()
46
 
 
47
 
macro_display_feature_log()