2019-04-12 22:09:10 +02:00
|
|
|
# Finds 7z.
|
|
|
|
#
|
|
|
|
# 7z_FOUND - True if 7z is found.
|
|
|
|
# 7z_EXECUTABLE - Path to executable
|
|
|
|
|
|
|
|
#=============================================================================
|
2020-08-13 21:08:54 +02:00
|
|
|
# SPDX-FileCopyrightText: 2019 Friedrich W. H. Kossebau <kossebau@kde.org>
|
2019-04-12 22:09:10 +02:00
|
|
|
#
|
2020-08-13 21:08:54 +02:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2019-04-12 22:09:10 +02:00
|
|
|
#=============================================================================
|
|
|
|
|
|
|
|
find_program(7z_EXECUTABLE NAMES 7z.exe 7za.exe)
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(7z
|
|
|
|
FOUND_VAR
|
|
|
|
7z_FOUND
|
|
|
|
REQUIRED_VARS
|
|
|
|
7z_EXECUTABLE
|
|
|
|
)
|
|
|
|
mark_as_advanced(7z_EXECUTABLE)
|
|
|
|
|
|
|
|
set_package_properties(7z PROPERTIES
|
|
|
|
URL "https://www.7-zip.org/"
|
|
|
|
DESCRIPTION "Data (de)compression program"
|
|
|
|
)
|