Commit 20c4bd68 authored by Daniel Mensinger's avatar Daniel Mensinger

meson: Added CMake runtime check

parent 91191b87
Pipeline #6254 passed with stage
in 54 minutes and 15 seconds
# Find the meson executable
#
# Defines the following variables
# Meson_EXECUTABLE - path of the Cppcheck executable
# Meson_VERSION - version of the found meson executable
#=============================================================================
# Copyright 2019 Daniel Mensinger <daniel@mensinger-ka.de>
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
find_program(Meson_EXECUTABLE NAMES meson meson.py)
set(Meson_VERSION "")
if(Meson_EXECUTABLE)
execute_process(
COMMAND ${Meson_EXECUTABLE} --version
TIMEOUT 5
OUTPUT_VARIABLE Meson_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
)
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Meson REQUIRED_VARS Meson_EXECUTABLE VERSION_VAR Meson_VERSION)
mark_as_advanced(Meson_EXECUTABLE)
mark_as_advanced(Meson_VERSION)
add_definitions(-DTRANSLATION_DOMAIN=\"kdevmesonmanager\")
find_package(Meson 0.51 QUIET)
set_package_properties(Meson PROPERTIES
DESCRIPTION "The Meson build system"
URL "https://mesonbuild.com"
PURPOSE "Recommended: required by the Meson project manager plugin"
TYPE RUNTIME
)
set(mesonbuilder_SRCS
mesonbuilder.cpp
mesonconfig.cpp
......
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