File: FindReuseTool.cmake

package info (click to toggle)
kf6-extra-cmake-modules 6.22.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,608 kB
  • sloc: python: 668; cpp: 330; ansic: 291; xml: 182; sh: 62; makefile: 8
file content (25 lines) | stat: -rw-r--r-- 800 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# SPDX-FileCopyrightText: 2020 Andreas Cord-Landwehr <cordlandwehr@kde.org>
#
# SPDX-License-Identifier: BSD-3-Clause

#[=======================================================================[.rst:
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
#]=======================================================================]

cmake_policy(VERSION 3.16)

find_program(REUSETOOL_EXECUTABLE NAMES reuse)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(ReuseTool
    FOUND_VAR
        REUSETOOL_FOUND
    REQUIRED_VARS
        REUSETOOL_EXECUTABLE
)