-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
1,494 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ | |
# | ||
# Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 | ||
# Vladimír Vondruš <[email protected]> | ||
# Copyright © 2015 Andrea Capobianco <[email protected]> | ||
# Copyright © 2015, 2018 Jonathan Hale <[email protected]> | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a | ||
# copy of this software and associated documentation files (the "Software"), | ||
|
@@ -64,6 +66,7 @@ cmake_dependent_option(BUILD_GL_TESTS "Build unit tests for OpenGL code" OFF "BU | |
option(BUILD_STATIC "Build static libraries (default are dynamic)" OFF) | ||
cmake_dependent_option(BUILD_STATIC_PIC "Build static libraries with position-independent code" ON "BUILD_STATIC" OFF) | ||
|
||
option(WITH_OCTREE "Build Octree library" OFF) | ||
option(WITH_UI "Build Ui library" OFF) | ||
cmake_dependent_option(WITH_UI_GALLERY "Build magnum-ui-gallery executable" OFF "WITH_UI" OFF) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ | |
# | ||
# Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 | ||
# Vladimír Vondruš <[email protected]> | ||
# Copyright © 2015 Andrea Capobianco <[email protected]> | ||
# Copyright © 2015, 2018 Jonathan Hale <[email protected]> | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a | ||
# copy of this software and associated documentation files (the "Software"), | ||
|
@@ -23,6 +25,10 @@ | |
# DEALINGS IN THE SOFTWARE. | ||
# | ||
|
||
if(WITH_OCTREE) | ||
add_subdirectory(Octree) | ||
endif() | ||
|
||
if(WITH_UI) | ||
add_subdirectory(Ui) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# | ||
# This file is part of Magnum. | ||
# | ||
# Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 | ||
# Vladimír Vondruš <[email protected]> | ||
# Copyright © 2015 Andrea Capobianco <[email protected]> | ||
# Copyright © 2015, 2018 Jonathan Hale <[email protected]> | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a | ||
# copy of this software and associated documentation files (the "Software"), | ||
# to deal in the Software without restriction, including without limitation | ||
# the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
# and/or sell copies of the Software, and to permit persons to whom the | ||
# Software is furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included | ||
# in all copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
# DEALINGS IN THE SOFTWARE. | ||
# | ||
|
||
cmake_minimum_required(VERSION 2.8.12) | ||
|
||
find_package(Magnum REQUIRED OPTIONAL_COMPONENTS SceneGraph) | ||
|
||
set(MagnumOctree_SOURCES | ||
instantiation.cpp) | ||
|
||
set(MagnumOctree_HEADERS | ||
Octree.h | ||
Octree.hpp | ||
|
||
visibility.h) | ||
|
||
# Build with Octree based view culling for SceneGraph if found | ||
if(Magnum_SceneGraph_FOUND) | ||
list(APPEND MagnumOctree_HEADERS | ||
OctreeDrawableGroup.h | ||
OctreeDrawableGroup.hpp) | ||
endif() | ||
|
||
add_library(MagnumOctree STATIC ${MagnumOctree_SOURCES} ${MagnumOctree_HEADERS}) | ||
target_include_directories(MagnumOctree PUBLIC | ||
${PROJECT_SOURCE_DIR}/src | ||
${PROJECT_BINARY_DIR}/src) | ||
target_link_libraries(MagnumOctree Magnum::Magnum) | ||
|
||
install(TARGETS MagnumOctree | ||
RUNTIME DESTINATION ${MAGNUM_BINARY_INSTALL_DIR} | ||
LIBRARY DESTINATION ${MAGNUM_LIBRARY_INSTALL_DIR} | ||
ARCHIVE DESTINATION ${MAGNUM_LIBRARY_INSTALL_DIR}) | ||
install(FILES ${MagnumOctree_HEADERS} DESTINATION ${MAGNUM_INCLUDE_INSTALL_DIR}/Octree) | ||
|
||
if(BUILD_TESTS) | ||
add_subdirectory(Test) | ||
endif() |
Oops, something went wrong.