Commit d0fecad4 authored by Harald Sitter's avatar Harald Sitter 🌈
Browse files

look for runtime deps from samba

make sure distros know we need them to be functional
parent cf4538ca
......@@ -5,7 +5,7 @@ set(QT_MIN_VERSION "5.0.0")
set(KF5_MIN_VERSION "5.74.0")
find_package(ECM ${KF5_MIN_VERSION} CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${ECM_MODULE_PATH})
include(FeatureSummary)
include(KDEInstallDirs)
......@@ -35,6 +35,20 @@ set_package_properties(PackageKitQt5
PURPOSE "Needed to automatically install the samba package."
)
find_package(net)
set_package_properties(net PROPERTIES
TYPE RUNTIME
DESCRIPTION "Samba CLI tool"
PURPOSE "Runtime dependency to do anything"
)
find_package(testparm)
set_package_properties(testparm PROPERTIES
TYPE RUNTIME
DESCRIPTION "Samba CLI tool"
PURPOSE "Runtime dependency to do anything"
)
include(CheckIncludeFile)
include(CheckIncludeFiles)
include(CheckSymbolExists)
......
# SPDX-License-Identifier: BSD-3-Clause
# SPDX-FileCopyrightText: 2020 Harald Sitter <sitter@kde.org>
find_program(net_EXE net)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(net
FOUND_VAR
net_FOUND
REQUIRED_VARS
net_EXE
)
# SPDX-License-Identifier: BSD-3-Clause
# SPDX-FileCopyrightText: 2020 Harald Sitter <sitter@kde.org>
find_program(testparm_EXE testparm)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(testparm
FOUND_VAR
testparm_FOUND
REQUIRED_VARS
testparm_EXE
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment