-
Notifications
You must be signed in to change notification settings - Fork 5
/
FindHeaptrack.cmake
23 lines (18 loc) · 839 Bytes
/
FindHeaptrack.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# Copyright (C) 2021 Swift Navigation Inc.
# Contact: Swift Navigation <dev@swift-nav.com>
#
# This source is subject to the license found in the file 'LICENSE' which must
# be be distributed together with this source. All other rights reserved.
#
# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
# EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
#
if(NOT Heaptrack_FOUND)
find_program(Heaptrack_EXECUTABLE NAMES heaptrack)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Heaptrack DEFAULT_MSG Heaptrack_EXECUTABLE)
set(Heaptrack_FOUND ${Heaptrack_FOUND} CACHE BOOL "Flag whether Heaptrack package was found")
mark_as_advanced(Heaptrack_FOUND Heaptrack_EXECUTABLE)
endif()