aboutsummaryrefslogtreecommitdiff
path: root/find-modules/FindReuseTool.cmake
blob: adceeeb972b4872eb73eb492e6c698532abf43b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
#
#  REUSETOOL_FOUND      - True if REUSE tool is found.
#  REUSETOOL_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
        REUSETOOL_EXECUTABLE
)