forked from BlueBrain/osgTransparency
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
79 lines (66 loc) · 3.11 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
# Copyright (c) 2006-2018, École Polytechnique Fédérale de Lausanne (EPFL) /
# Blue Brain Project and
# Universidad Politécnica de Madrid (UPM)
# Juan Hernando <[email protected]>
#
# This file is part of osgTransparency
# <https://github.com/BlueBrain/osgTransparency>
#
# 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.
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
project(osgTransparency VERSION 0.8.1)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMake"
"${CMAKE_SOURCE_DIR}/CMake/common")
if(NOT EXISTS ${CMAKE_SOURCE_DIR}/CMake/common/Common.cmake)
message(FATAL_ERROR "CMake/common missing, run: git submodule update --init")
endif()
set(osgTransparency_VERSION_ABI 8)
set(OSGTRANSPARENCY_DESCRIPTION
"OSG library for transparency rendering algorithms")
set(OSGTRANSPARENCY_MAINTAINER_NAME "Blue Brain Project")
set(OSGTRANSPARENCY_MAINTAINER_EMAIL "<[email protected]>")
set(OSGTRANSPARENCY_MAINTAINER_MAINTAINER "${OSGTRANSPARENCY_MAINTAINER_NAME} ${OSGTRANSPARENCY_MAINTAINER_EMAIL}")
set(OSGTRANSPARENCY_LICENSE GPLv3)
set(OSGTRANSPARENCY_INCLUDE_NAME osgTransparency)
set(OSGTRANSPARENCY_DEB_DEPENDS libopenscenegraph-dev libboost-filesystem-dev)
set(COMMON_PROJECT_DOMAIN ch.epfl.bluebrain)
include(Common)
if(NOT IS_ABSOLUTE ${CMAKE_INSTALL_PREFIX})
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_PREFIX})
endif()
common_find_package(Boost 1.41.0 REQUIRED COMPONENTS filesystem system
unit_test_framework)
common_find_package(OpenGL REQUIRED)
common_find_package(OpenSceneGraph 3.0 REQUIRED COMPONENTS osgGA osgText osgUtil
osgDB osgViewer)
common_find_package(OsgGL3)
common_find_package_post()
set(OSGTRANSPARENCY_DEPENDENT_LIBRARIES Boost)
if(OSG_GL3_AVAILABLE)
include_directories(${PROJECT_SOURCE_DIR}/include)
endif()
include_directories(${PROJECT_SOURCE_DIR}/lib/
${PROJECT_BINARY_DIR}/lib/
${EXTRA_INCLUDE_DIRS}
SYSTEM ${OPENSCENEGRAPH_INCLUDE_DIRS}
${OPENTHREADS_INCLUDE_PATH}
${Boost_INCLUDE_DIRS})
add_subdirectory(osgTransparency)
add_subdirectory(examples)
add_subdirectory(tests)
include(CPackConfig)
set(DOXYGEN_MAINPAGE_MD README.md)
set(DOXYGEN_EXTRA_INPUT ${PROJECT_SOURCE_DIR}/README.md)
set(DOXYGEN_PROJECT_NAME "OSG Transparency")
include(DoxygenRule)