diff options
author | Andreas Cord-Landwehr <cordlandwehr@kde.org> | 2020-09-26 10:32:56 +0000 |
---|---|---|
committer | Andreas Cord-Landwehr <cordlandwehr@kde.org> | 2020-09-26 10:32:56 +0000 |
commit | 7e73f1a972f13699c3c2cb80ad50c834b8a8464e (patch) | |
tree | 56c80b957ed9f6dd3f5130011ed866ae6512daaf /find-modules | |
parent | 250932795701e8c6f88bf150dcf4d3668c3173c7 (diff) | |
download | extra-cmake-modules-7e73f1a972f13699c3c2cb80ad50c834b8a8464e.tar.gz extra-cmake-modules-7e73f1a972f13699c3c2cb80ad50c834b8a8464e.tar.bz2 |
Introduce plausibility check for outbound licenes
When creating a library or executable, several source files are combined
into a binary artifact that has an outbound license of its own. This test
generator allows to check if the combined source files are compatible
with the desired outbound license.
Requirements for using these tests:
- input source files must contain the SPDX-License-Information tag
- python3 must be available
- the "reuse spdx" tool must be available
Diffstat (limited to 'find-modules')
-rw-r--r-- | find-modules/FindReuseTool.cmake | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/find-modules/FindReuseTool.cmake b/find-modules/FindReuseTool.cmake new file mode 100644 index 00000000..9377f49e --- /dev/null +++ b/find-modules/FindReuseTool.cmake @@ -0,0 +1,23 @@ +# WARNING: FOR ECM-INTERNAL USE ONLY, DO NOT USE IN OWN PROJECTS +# THIS FILE MIGHT DISAPPEAR IN FUTURE VERSIONS OF ECM. + +# Finds the REUSE Tool by FSFE: https://github.com/fsfe/reuse-tool +# +# REUSE_TOOL_FOUND - True if REUSE tool is found. +# REUSE_TOOL_EXECUTABLE - Path to executable + +#============================================================================= +# SPDX-FileCopyrightText: 2020 Andreas Cord-Landwehr <cordlandwehr@kde.org> +# +# SPDX-License-Identifier: BSD-3-Clause +#============================================================================= + +find_program(REUSETOOL_EXECUTABLE NAMES reuse) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(ReuseTool + FOUND_VAR + REUSETOOL_FOUND + REQUIRED_VARS + REUSE_TOOL_EXECUTABLE +) |