-
Notifications
You must be signed in to change notification settings - Fork 34
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
151 changed files
with
358 additions
and
79 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
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
## | ||
# Open Space Program | ||
# Copyright © 2019-2024 Open Space Program Project | ||
# | ||
# MIT License | ||
# | ||
# 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. | ||
## | ||
|
||
find_package(Magnum REQUIRED | ||
Trade | ||
AnyImageImporter | ||
) | ||
|
||
find_package(MagnumPlugins REQUIRED | ||
TinyGltfImporter | ||
StbImageImporter) | ||
|
||
SET(DEPS_LIBS | ||
EnTT::EnTT | ||
Corrade::Main | ||
Magnum::Magnum | ||
Magnum::Trade | ||
longeron | ||
spdlog | ||
OpenSpaceProgram) | ||
|
||
add_library(Adera STATIC) | ||
|
||
target_compile_features(Adera PUBLIC cxx_std_20) | ||
|
||
# Link it to the interface library that describes the dependencies | ||
target_link_libraries(Adera PRIVATE ${DEPS_LIBS}) | ||
|
||
# Gather paths to OSP headers and sources | ||
file(GLOB_RECURSE CPP_FILES CONFIGURE_DEPENDS *.cpp) | ||
file(GLOB_RECURSE H_FILES CONFIGURE_DEPENDS *.h) | ||
target_sources(Adera PRIVATE "${CPP_FILES}" "${H_FILES}") | ||
|
||
# Enforce conformance mode for adera | ||
target_compile_options(Adera PRIVATE $<$<CXX_COMPILER_ID:MSVC>:/permissive->) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,59 @@ | ||
## | ||
# Open Space Program | ||
# Copyright © 2019-2024 Open Space Program Project | ||
# | ||
# MIT License | ||
# | ||
# 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. | ||
## | ||
|
||
find_package(Magnum REQUIRED | ||
GL | ||
Shaders | ||
MeshTools | ||
Primitives | ||
Trade | ||
) | ||
|
||
SET(DEPS_LIBS | ||
Corrade::Main | ||
Magnum::GL | ||
Magnum::Magnum | ||
Magnum::MeshTools | ||
Magnum::Primitives | ||
Magnum::Shaders | ||
Magnum::Trade | ||
OpenSpaceProgram | ||
longeron | ||
OspGL) | ||
|
||
add_library(AderaGL STATIC) | ||
|
||
target_compile_features(AderaGL PUBLIC cxx_std_20) | ||
|
||
# Link it to the interface library that describes the dependencies | ||
target_link_libraries(AderaGL PRIVATE ${DEPS_LIBS}) | ||
|
||
# Gather paths to OSP headers and sources | ||
file(GLOB_RECURSE CPP_FILES CONFIGURE_DEPENDS *.cpp) | ||
file(GLOB_RECURSE H_FILES CONFIGURE_DEPENDS *.h) | ||
target_sources(AderaGL PRIVATE "${CPP_FILES}" "${H_FILES}") | ||
|
||
# Enforce conformance mode for adera | ||
target_compile_options(AderaGL PRIVATE $<$<CXX_COMPILER_ID:MSVC>:/permissive->) |
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
## | ||
# Open Space Program | ||
# Copyright © 2019-2024 Open Space Program Project | ||
# | ||
# MIT License | ||
# | ||
# 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. | ||
## | ||
|
||
find_package(Magnum REQUIRED | ||
Trade | ||
AnyImageImporter | ||
) | ||
|
||
find_package(MagnumPlugins REQUIRED | ||
TinyGltfImporter | ||
StbImageImporter) | ||
|
||
SET(OSP_DEPS_LIBS | ||
Threads::Threads | ||
EnTT::EnTT | ||
Corrade::Main | ||
Magnum::Magnum | ||
Magnum::Trade | ||
Magnum::AnyImageImporter | ||
MagnumPlugins::TinyGltfImporter | ||
MagnumPlugins::StbImageImporter | ||
toml11 | ||
spdlog | ||
longeron) | ||
|
||
add_library(OpenSpaceProgram STATIC) | ||
|
||
target_compile_features(OpenSpaceProgram PUBLIC cxx_std_20) | ||
|
||
target_include_directories(OpenSpaceProgram PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/..") | ||
|
||
# Link it to the interface library that describes the dependencies | ||
target_link_libraries(OpenSpaceProgram PUBLIC ${OSP_DEPS_LIBS}) | ||
|
||
# Gather paths to OSP headers and sources | ||
file(GLOB_RECURSE CPP_FILES CONFIGURE_DEPENDS *.cpp) | ||
file(GLOB_RECURSE H_FILES CONFIGURE_DEPENDS *.h) | ||
target_sources(OpenSpaceProgram PRIVATE "${CPP_FILES}" "${H_FILES}") | ||
|
||
# Enforce conformance mode for osp-magnum | ||
target_compile_options(OpenSpaceProgram PRIVATE $<$<CXX_COMPILER_ID:MSVC>:/permissive->) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.