This repository has been archived by the owner on Jul 8, 2022. It is now read-only.
forked from TACC/DisplayCluster
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathCMakeLists.txt
77 lines (64 loc) · 2.25 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
# Copyright (c) 2013-2015, EPFL/Blue Brain Project
# Raphael Dumusc <[email protected]>
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(DisplayCluster)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake
${CMAKE_SOURCE_DIR}/CMake/common)
include(GitExternal)
set(VERSION_MAJOR 0)
set(VERSION_MINOR 7)
set(VERSION_PATCH 0)
set(VERSION_ABI 1)
set(DISPLAYCLUSTER_INCLUDE_NAME dc)
set(DISPLAYCLUSTER_DESCRIPTION
"A collaborative software for driving large display walls")
set(DISPLAYCLUSTER_MAINTAINER
"Blue Brain Project <[email protected]>")
set(DISPLAYCLUSTER_LICENSE BSD)
include(Common)
common_package(Boost REQUIRED COMPONENTS program_options date_time serialization
unit_test_framework regex system thread)
common_package(Deflect REQUIRED)
common_package(FCGI REQUIRED)
common_package(FFMPEG REQUIRED)
common_package(MPI REQUIRED)
common_package(OpenGL REQUIRED)
common_package(OpenMP)
common_package(Qt5Concurrent REQUIRED)
common_package(Qt5Core REQUIRED)
common_package(Qt5Declarative REQUIRED)
common_package(Qt5Network REQUIRED)
common_package(Qt5OpenGL REQUIRED)
common_package(Qt5Svg REQUIRED)
common_package(Qt5Quick REQUIRED)
common_package(Qt5WebKitWidgets SYSTEM REQUIRED)
common_package(Qt5Widgets REQUIRED)
common_package(Qt5XmlPatterns REQUIRED)
common_package(Qt5Xml REQUIRED)
common_package(TUIO 1.4 SYSTEM)
if(TUIO_FOUND)
option(ENABLE_TUIO_TOUCH_LISTENER "Enable TUIO touch listener for multi-touch events" ON)
endif()
common_package(Poppler COMPONENTS Qt5)
if(POPPLER_FOUND)
option(ENABLE_PDF_SUPPORT "Enable Pdf support using Poppler" ON)
endif()
if(ENABLE_TUIO_TOUCH_LISTENER)
common_package(X11 REQUIRED)
else()
common_package(X11) # for webbrowser unit tests
endif()
if(CMAKE_COMPILER_IS_CLANG)
# Fix for Qt5 - using namespace QtDeclarative in header
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-header-hygiene")
endif()
common_package_post()
add_subdirectory(dc)
add_subdirectory(apps)
add_subdirectory(tests)
# Documentation
set(COMMON_PROJECT_DOMAIN ch.epfl.bluebrain)
include(DoxygenRule)
include(CommonPackageConfig)
# Install example files
install(DIRECTORY examples DESTINATION share/DisplayCluster COMPONENT examples)