forked from BlueBrain/DisplayCluster
-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
86 lines (69 loc) · 2.6 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
79
80
81
82
83
84
85
86
# Copyright (c) 2013-2014, EPFL/Blue Brain Project
# Raphael Dumusc <[email protected]>
cmake_minimum_required(VERSION 2.8)
project(DisplayCluster)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake
${CMAKE_SOURCE_DIR}/CMake/common)
include(GitExternal)
# Versioning
set(VERSION_MAJOR 0)
set(VERSION_MINOR 4)
set(VERSION_PATCH 0)
set(VERSION_ABI 0)
#set(CMAKE_CXX_FLAGS "-Wall -ftemplate-depth-1024")
# Scripts
set(PROJECT_INCLUDE_NAME dc)
set(DISPLAYCLUSTER_DESCRIPTION "The DisplayCluster project")
set(DISPLAYCLUSTER_ISSUES_URL "https://bbpteam.epfl.ch/project/issues/browse/DISCL")
set(DISPLAYCLUSTER_PACKAGE_URL "https://github.com/BlueBrain/DisplayCluster/releases")
include(Common)
include(FindPackages) # Generated by Buildyard and checked in
# Remove preprocessor #error warnings of cppcheck which happen in PDF.cpp and PictureFlow.cpp.
# The -D option in TargetHooks.cmake seems to overwrites other #defines and causes the problem.
list(APPEND CPPCHECK_EXTRA_ARGS --suppress=preprocessorErrorDirective)
# Build options
# Fix for avutil: https://code.google.com/p/ffmpegsource/source/detail?r=311
add_definitions(-D__STDC_CONSTANT_MACROS)
option(FORCE_BUILD_DCCORE "Force build the core library" OFF)
if(OPENGL_FOUND AND MPI_FOUND AND FFMPEG_FOUND AND FCGI_FOUND)
include_directories(SYSTEM ${MPI_INCLUDE_PATH})
set(BUILD_CORE_LIBRARY ON)
else()
if(FORCE_BUILD_DCCORE)
message(FATAL_ERROR "One of OpenGL MPI ffmpeg fcgi was not found. Not building core library!")
else()
message(STATUS "One of OpenGL MPI ffmpeg fcgi was not found. Not building core library!")
endif()
endif()
#<<<<<<< HEAD
# Core library
#find_package(OpenGL)
#find_package(MPI)
#find_package(FFMPEG)
#if(OPENGL_FOUND AND MPI_FOUND AND FFMPEG_FOUND)
# add_subdirectory(src)
# set(DISPLAYCLUSTER_LIBRARY_BUILT TRUE)
# # install launchers
# install(PROGRAMS examples/startdisplaycluster DESTINATION bin)
# install(PROGRAMS examples/displaycluster.py DESTINATION bin)
# # install data files
# install(DIRECTORY data DESTINATION .)
#=======
if(TUIO_FOUND)
option(ENABLE_TUIO_TOUCH_LISTENER "Enable TUIO touch listener for multi-touch events" ON)
endif()
#>>>>>>> upstream/master
if(POPPLER_FOUND)
option(ENABLE_PDF_SUPPORT "Enable Pdf support using Poppler" ON)
endif()
include_directories(src)
# Targets
add_subdirectory(src)
add_subdirectory(apps)
add_subdirectory(tests)
# Documentation
set(COMMON_PROJECT_DOMAIN ch.epfl.bluebrain)
include(DoxygenRule)
add_subdirectory(doc)
# Install example files
install(DIRECTORY examples DESTINATION share/DisplayCluster COMPONENT examples)