diff --git a/CMakeLists.txt b/CMakeLists.txt index 004e7a1..0067ed1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -102,6 +102,8 @@ endif() install(TARGETS moonbase_licensing EXPORT moonbase_cppTargets) install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) +install(FILES "${PROJECT_SOURCE_DIR}/LICENSE" + DESTINATION "${CMAKE_INSTALL_DOCDIR}") write_basic_package_version_file( "${PROJECT_BINARY_DIR}/moonbase_cppConfigVersion.cmake" diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..0ed4b09 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Moonbase AS + +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. diff --git a/README.md b/README.md index bd0389e..387a61a 100644 --- a/README.md +++ b/README.md @@ -189,3 +189,7 @@ Each release: - Bumps `VERSION` in `CMakeLists.txt` (which flows into `MOONBASE_CPP_VERSION` and the `User-Agent: moonbase-cpp/` header) - Updates `CHANGELOG.md` - Tags the commit and creates a GitHub Release (with the auto-generated source archives at `https://github.com///archive/refs/tags/v.tar.gz`) + +## License + +Released under the [MIT License](LICENSE). diff --git a/package.json b/package.json index 19bcf17..b809fd1 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.0.0-development", "private": true, "description": "Release tooling for the moonbase-cpp SDK. Not published to npm.", + "license": "MIT", "scripts": { "release": "semantic-release" },