katie/cmake/modules/FindXdgUtils.cmake
Ivailo Monev 7ac9b8cb69 check for xdg-open during build
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-01-23 23:44:39 +02:00

22 lines
509 B
CMake

# - Try to find xdg-utils
# Once done this will define
#
# XDGUTILS_FOUND - system has xdg-utils
# XDGUTILS_OPEN - the xdg-open binary
#
# Copyright (c) 2021, Ivailo Monev, <xakepa10@gmail.com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
include(FindPackageHandleStandardArgs)
find_program(XDGUTILS_OPEN
NAMES xdg-open
HINTS $ENV{XDGUTILSDIR}/bin
)
find_package_handle_standard_args(XdgUtils
REQUIRED_VARS XDGUTILS_OPEN
)
mark_as_advanced(XDGUTILS_OPEN)