mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-03 17:30:04 -05:00
Replacing CMake-based version setting with C++-based version
Adding function to OpenSpace that returns the license header
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#########################################################################################
|
||||
|
||||
set(OPENSPACE_SOURCE
|
||||
${OPENSPACE_BASE_DIR}/src/openspace.cpp
|
||||
${OPENSPACE_BASE_DIR}/src/engine/configurationmanager.cpp
|
||||
${OPENSPACE_BASE_DIR}/src/engine/downloadmanager.cpp
|
||||
${OPENSPACE_BASE_DIR}/src/engine/logfactory.cpp
|
||||
@@ -90,6 +91,7 @@ set(OPENSPACE_SOURCE
|
||||
)
|
||||
|
||||
set(OPENSPACE_HEADER
|
||||
${OPENSPACE_BASE_DIR}/include/openspace/openspace.h
|
||||
${OPENSPACE_BASE_DIR}/include/openspace/engine/configurationmanager.h
|
||||
${OPENSPACE_BASE_DIR}/include/openspace/engine/downloadmanager.h
|
||||
${OPENSPACE_BASE_DIR}/include/openspace/engine/logfactory.h
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
#include <openspace/engine/openspaceengine.h>
|
||||
|
||||
#include <openspace/version.h>
|
||||
#include <openspace/openspace.h>
|
||||
|
||||
#include <openspace/engine/configurationmanager.h>
|
||||
#include <openspace/engine/downloadmanager.h>
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
#include <openspace/engine/openspaceengine.h>
|
||||
#include <openspace/interaction/interactionhandler.h>
|
||||
#include <openspace/util/time.h>
|
||||
#include <openspace/version.h>
|
||||
#include <openspace/openspace.h>
|
||||
#include <ghoul/logging/logmanager.h>
|
||||
|
||||
//lua functions
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
/*****************************************************************************************
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2014-2016 *
|
||||
* *
|
||||
* 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. *
|
||||
****************************************************************************************/
|
||||
|
||||
#include <openspace/openspace.h>
|
||||
|
||||
namespace openspace {
|
||||
|
||||
std::string licenseText() {
|
||||
return "OpenSpace\n\
|
||||
\n\
|
||||
Copyright (c) 2014-2016\n\
|
||||
\n\
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this\n\
|
||||
software and associated documentation files (the \"Software\"), to deal in the Software\n\
|
||||
without restriction, including without limitation the rights to use, copy, modify,\n\
|
||||
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to\n\
|
||||
permit persons to whom the Software is furnished to do so, subject to the following\n\
|
||||
conditions:\n\
|
||||
\n\
|
||||
The above copyright notice and this permission notice shall be included in all copies\n\
|
||||
or substantial portions of the Software.\n\
|
||||
\n\
|
||||
THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\n\
|
||||
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\n\
|
||||
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n\
|
||||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF\n\
|
||||
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE\n\
|
||||
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.";
|
||||
}
|
||||
|
||||
} // namespace openspace
|
||||
Reference in New Issue
Block a user