summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: b892b2783f4bd4fab0b2f9a33a8948a26b9a2c38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)

set(RUSTC_DEMANGLE_INCLUDE_DIR "" CACHE STRING "Path to the folder containing rustc_demangle.h from https://github.com/alexcrichton/rustc-demangle")
set(RUSTC_DEMANGLE_LIBRARY "" CACHE STRING "Path to the librustc_demangle.so library from https://github.com/alexcrichton/rustc-demangle")
option(WITH_RUSTC_DEMANGLE "Build rust demangle support" OFF)
add_feature_info("Rust demangler for perfparser" WITH_RUSTC_DEMANGLE "Requires RUSTC_DEMANGLE_INCLUDE_DIR and RUSTC_DEMANGLE_LIBRARY to be specified")

add_subdirectory(app)
add_subdirectory(tests)