forked from BlueBrain/RESTBridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
61 lines (51 loc) · 2.28 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
# Copyright (c) 2013-2021, EPFL/Blue Brain Project
# Stefan Eilemann <[email protected]>
#
# This file is part of RESTBridge <https://github.com/BlueBrain/RESTBridge>
#
# This library is free software; you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License version 3.0 as published
# by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this library; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
# All rights reserved. Do not distribute without further notice.
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
project(RESTBridge VERSION 0.3.0)
set(RESTBridge_VERSION_ABI 1)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake
${CMAKE_SOURCE_DIR}/CMake/common)
include(GitExternal)
set(RESTBRIDGE_DESCRIPTION "A library that provides a simple way to expose a
REST interface in a C++ application")
set(RESTBRIDGE_ISSUES_URL "https://github.com/BlueBrain/RESTBridge/issues")
set(RESTBRIDGE_MAINTAINER
"BBP Visualization Team <[email protected]>")
set(RESTBRIDGE_LICENSE LGPL)
set(RESTBRIDGE_DEB_DEPENDS libcppnetlib-dev)
include(Common)
set(COMMON_PROJECT_DOMAIN ch.epfl.bluebrain)
option(CPP-NETLIB_BUILD_SHARED_LIBS "Build cpp-netlib as shared libraries." ON)
option(CPP-NETLIB_BUILD_EXAMPLES "Build the cpp-netlib project examples." OFF)
if(APPLE)
# WAR otherwise system OpenSSL is preferred
list(INSERT CMAKE_PREFIX_PATH 0 /opt/local /usr/local)
endif()
common_find_package(Boost REQUIRED COMPONENTS unit_test_framework system thread)
common_find_package(cppnetlib SYSTEM REQUIRED)
common_find_package(FlatBuffers REQUIRED)
common_find_package(ZeroEQ REQUIRED)
common_find_package_post()
add_subdirectory(restbridge)
add_subdirectory(apps)
add_subdirectory(tests)
include(CPackConfig)
include(DoxygenRule)
SET(DOXYGEN_MAINPAGE_MD README.md)
SET(DOXYGEN_EXTRA_INPUT ${PROJECT_SOURCE_DIR}/README.md)