blob: 06840304fd70ed9f099274bb83ab95e0af1ad2f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
find_package(elfutils)
if (NOT elfutils_FOUND)
message(STATUS "PerfParser is disabled. Set ELFUTILS_INSTALL_DIR to enable it.")
return()
endif()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
find_package(Zstd)
find_package(LibRustcDemangle)
set_package_properties(LibRustcDemangle PROPERTIES
DESCRIPTION "Demangling for Rust symbols, written in Rust."
PURPOSE "Demangling of Rust symbols"
URL "https://github.com/alexcrichton/rustc-demangle"
TYPE RUNTIME)
find_package(LibDDemangle)
set_package_properties(LibDDemangle PROPERTIES
DESCRIPTION "Demangling for D symbols, written in D."
PURPOSE "Demangling of D symbols"
URL "https://github.com/lievenhey/d_demangler"
TYPE RUNTIME)
include(CheckSymbolExists)
set(CMAKE_REQUIRED_LIBRARIES elfutils::dw elfutils::elf)
check_symbol_exists(dwfl_get_debuginfod_client "libdwfl.h" HAVE_DWFL_GET_DEBUGINFOD_CLIENT)
add_subdirectory(app)
add_subdirectory(tests)
|