Look for Cppcheck & heaptrack as RUNTIME dependencies

Summary:
Reporting that RUNTIME dependency in the CMake dependency summary
log helps e.g. packagers to learn it.

Reviewers: #kdevelop, apol

Reviewed By: #kdevelop, apol

Subscribers: kdevelop-devel

Differential Revision: https://phabricator.kde.org/D5632
parent ffe88e34
add_definitions(-DTRANSLATION_DOMAIN=\"kdevheaptrack\")
find_package(heaptrack QUIET)
set_package_properties(heaptrack PROPERTIES
DESCRIPTION "A heap memory profiler for Linux"
URL "https://cgit.kde.org/heaptrack.git"
PURPOSE "Required for the heaptrack plugin"
TYPE RUNTIME
)
find_package(heaptrack_gui QUIET)
set_package_properties(heaptrack_gui PROPERTIES
DESCRIPTION "Analyzer gui for heaptrack, a heap memory profiler for Linux"
URL "https://cgit.kde.org/heaptrack.git"
PURPOSE "Required for the heaptrack plugin"
TYPE RUNTIME
)
set(kdevheaptrack_SRCS
debug.cpp
job.cpp
......
# Find the heaptrack executable
#
# Defines the following variables
# heaptrack_EXECUTABLE - path of the heaptrack executable
#=============================================================================
# Copyright 2017 Friedrich W. H. Kossebau <kossebau@kde.org>
#
# 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(heaptrack_EXECUTABLE NAMES heaptrack)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(heaptrack DEFAULT_MSG heaptrack_EXECUTABLE)
mark_as_advanced(heaptrack_EXECUTABLE)
# Find the heaptrack_gui executable
#
# Defines the following variables
# heaptrack_gui_EXECUTABLE - path of the heaptrack_gui executable
#=============================================================================
# Copyright 2017 Friedrich W. H. Kossebau <kossebau@kde.org>
#
# 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(heaptrack_gui_EXECUTABLE NAMES heaptrack_gui)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(heaptrack_gui DEFAULT_MSG heaptrack_gui_EXECUTABLE)
mark_as_advanced(heaptrack_gui_EXECUTABLE)
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