summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-09-18 04:07:09 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-09-18 04:07:09 +0000
commite25d6dcc1efe71854efe0988734e4fb47eb00231 (patch)
tree27c5ed989e21fb6cc77e6ca0e783a718eef16812
parentMoved third party components from External to ThirdParty folder (diff)
downloadDiligentTools-e25d6dcc1efe71854efe0988734e4fb47eb00231.tar.gz
DiligentTools-e25d6dcc1efe71854efe0988734e4fb47eb00231.zip
Added CMake commands to install third party licenses
-rw-r--r--ThirdParty/CMakeLists.txt8
-rw-r--r--ThirdParty/tinygltf/LICENSE21
2 files changed, 29 insertions, 0 deletions
diff --git a/ThirdParty/CMakeLists.txt b/ThirdParty/CMakeLists.txt
index a1f7614..b3685f0 100644
--- a/ThirdParty/CMakeLists.txt
+++ b/ThirdParty/CMakeLists.txt
@@ -5,3 +5,11 @@ add_subdirectory(libtiff)
add_subdirectory(zlib-1.2.8)
add_subdirectory(lpng-1.6.17)
add_subdirectory(lua-5.2.3)
+
+set(LICENSE_INSTALL_PATH "DiligentTools/Licenses/ThirdParty")
+install(FILES libjpeg-9a/README DESTINATION ${LICENSE_INSTALL_PATH} RENAME libjpeg-readme.txt)
+install(FILES libtiff/COPYRIGHT DESTINATION ${LICENSE_INSTALL_PATH} RENAME libtiff-copyright.txt)
+install(FILES lpng-1.6.17/LICENSE DESTINATION ${LICENSE_INSTALL_PATH} RENAME lpng-license.txt)
+install(FILES lua-5.2.3/doc/readme.html DESTINATION ${LICENSE_INSTALL_PATH} RENAME lua-readme.html)
+install(FILES tinygltf/LICENSE DESTINATION ${LICENSE_INSTALL_PATH} RENAME tinygltf-license.txt)
+install(FILES zlib-1.2.8/README DESTINATION ${LICENSE_INSTALL_PATH} RENAME zlib-readme.txt)
diff --git a/ThirdParty/tinygltf/LICENSE b/ThirdParty/tinygltf/LICENSE
new file mode 100644
index 0000000..34398ad
--- /dev/null
+++ b/ThirdParty/tinygltf/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2017 Syoyo Fujita, Aurélien Chatelain and many contributors
+
+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.