Changeset View
Changeset View
Standalone View
Standalone View
3rdparty/CMakeLists.txt
- This file was added.
1 | project (kmymoney-and-all-its-deps) | ||||
---|---|---|---|---|---|
2 | | ||||
3 | # | ||||
4 | # Build all dependencies for KMyMoney and finally KMyMoney itself. | ||||
5 | # Parameters: EXTERNALS_DOWNLOAD_DIR place to download all packages | ||||
6 | # INSTALL_ROOT place to install everything to | ||||
7 | # | ||||
8 | # Example usage: cmake ..\kmymoneydep -DEXTERNALS_DOWNLOAD_DIR=/dev2/d -DINSTALL_ROOT=/dev2/i | ||||
9 | | ||||
10 | | ||||
11 | cmake_minimum_required(VERSION 2.8.6) | ||||
12 | | ||||
13 | if(NOT SUBMAKE_JOBS) | ||||
14 | set(SUBMAKE_JOBS 1) | ||||
15 | endif() | ||||
16 | | ||||
17 | if (CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR) | ||||
18 | message(FATAL_ERROR "Compiling in the source directory is not supported. Use for example 'mkdir build; cd build; cmake ..'.") | ||||
19 | endif (CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR) | ||||
20 | | ||||
21 | # Tools must be obtained to work with: | ||||
22 | include (ExternalProject) | ||||
23 | | ||||
24 | # allow specification of a directory with pre-downloaded | ||||
25 | # requirements | ||||
26 | if(NOT IS_DIRECTORY ${EXTERNALS_DOWNLOAD_DIR}) | ||||
27 | message(FATAL_ERROR "No externals download dir set. Use -DEXTERNALS_DOWNLOAD_DIR") | ||||
28 | endif() | ||||
29 | | ||||
30 | if(NOT IS_DIRECTORY ${INSTALL_ROOT}) | ||||
31 | message(FATAL_ERROR "No install dir set. Use -DINSTALL_ROOT") | ||||
32 | endif() | ||||
33 | | ||||
34 | set(TOP_INST_DIR ${INSTALL_ROOT}) | ||||
35 | set(EXTPREFIX "${TOP_INST_DIR}") | ||||
36 | set(CMAKE_PREFIX_PATH "${EXTPREFIX}") | ||||
37 | | ||||
38 | message( STATUS "CMAKE_GENERATOR: ${CMAKE_GENERATOR}") | ||||
39 | | ||||
40 | set(GLOBAL_BUILD_TYPE RelWithDebInfo) | ||||
41 | set(GLOBAL_PROFILE ${GLOBAL_PROFILE} -DBUILD_TESTING=false) | ||||
42 | | ||||
43 | set(SECURITY_EXE_LINKER_FLAGS "") | ||||
44 | set(SECURITY_SHARED_LINKER_FLAGS "") | ||||
45 | set(SECURITY_MODULE_LINKER_FLAGS "") | ||||
46 | | ||||
47 | if (DEFINED EP_PREFIX) | ||||
48 | set_directory_properties(PROPERTIES EP_PREFIX ${EP_PREFIX}) | ||||
49 | endif () | ||||
50 | | ||||
51 | | ||||
52 | if (UNIX AND NOT APPLE) | ||||
53 | set(LINUX true) | ||||
54 | set(PATCH_COMMAND patch) | ||||
55 | endif () | ||||
56 | | ||||
57 | # this list must be dependency-ordered | ||||
58 | add_subdirectory( ext_iconv ) | ||||
59 | add_subdirectory( ext_gettext ) | ||||
60 | add_subdirectory( ext_zlib ) | ||||
61 | add_subdirectory( ext_boost ) | ||||
62 | add_subdirectory( ext_png ) | ||||
63 | add_subdirectory( ext_xml ) | ||||
64 | add_subdirectory( ext_xslt ) | ||||
65 | add_subdirectory( ext_lzma ) | ||||
66 | add_subdirectory( ext_fontconfig) | ||||
67 | add_subdirectory( ext_freetype) | ||||
68 | add_subdirectory( ext_qt ) | ||||
69 | add_subdirectory( ext_frameworks ) | ||||
70 | add_subdirectory( ext_gmp ) | ||||
71 | add_subdirectory( ext_alkimia ) | ||||
72 | add_subdirectory( ext_kdiagram ) | ||||
73 | add_subdirectory( ext_icu ) |