forked from Eyescale/Collage
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
78 lines (60 loc) · 1.69 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Copyright (c) 2010 Daniel Pfeifer <daniel@pfeifer-mail.de>
# 2010-2012 Stefan Eilemann <eile@eyescale.ch>
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(Collage)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake)
include(revision)
set(RELEASE_VERSION OFF) # OFF or 'Mm0' ABI version
set(VERSION_MAJOR "0")
set(VERSION_MINOR "9")
set(VERSION_PATCH "0")
#set(LAST_RELEASE )
include(Common)
include(GitTargets)
include(UpdateFile)
include(FindPackages)
set(COLLAGE_DEPENDENT_LIBRARIES Lunchbox)
set(FEATURES)
include_directories(BEFORE ${CMAKE_SOURCE_DIR})
if(LUNCHBOX_USE_OPENMP)
find_package(OpenMP REQUIRED)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()
if(LUNCHBOX_USE_DNSSD)
set(FEATURES "${FEATURES} zeroconf")
endif()
if(NOT MSVC)
set(PTHREAD_LIBRARIES pthread)
endif()
if(OFED_FOUND)
set(FEATURES "${FEATURES} RDMA")
endif()
if(UDT_FOUND)
if(NOT UDT_HAS_RCVDATA)
message(STATUS "Disable old UDT version, missing UDT_RCVDATA")
set(UDT_FOUND)
else()
set(FEATURES "${FEATURES} UDT")
endif()
endif()
if(APPLE)
add_definitions(-DDarwin)
endif(APPLE)
add_definitions(-DCO_BUILD_DIR="${CMAKE_BINARY_DIR}/")
add_subdirectory(tools)
add_subdirectory(tests)
add_subdirectory(co)
add_subdirectory(doc)
if(MSVC)
message(STATUS "Configured with${FEATURES}")
else()
message(STATUS "Configured with ${CMAKE_BUILD_TYPE}${FEATURES}")
endif()
include(CPackConfig)
include(DoxygenRule)
set(CTEST_CUSTOM_WARNING_EXCEPTION ${CTEST_CUSTOM_WARNING_EXCEPTION}
# http://public.kitware.com/Bug/view.php?id=10179
"ld: warning: duplicate dylib")
include(CTest)
include(PackageConfig)