mirror of
https://github.com/aristocratos/btop.git
synced 2024-11-10 21:36:45 +01:00
5c6a281002
Linux is completly supported FreeBSD is not able to create a static executable for now. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273398 MacOS was not tested
24 lines
636 B
CMake
24 lines
636 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# Find libkvm, the Kernel Data Access Library
|
|
#
|
|
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
|
find_path(kvm_INCLUDE_DIR NAMES kvm.h)
|
|
find_library(kvm_LIBRARY NAMES kvm)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(kvm REQUIRED_VARS kvm_LIBRARY kvm_INCLUDE_DIR)
|
|
|
|
if(kvm_FOUND AND NOT TARGET kvm::kvm)
|
|
add_library(kvm::kvm UNKNOWN IMPORTED)
|
|
set_target_properties(kvm::kvm PROPERTIES
|
|
IMPORTED_LOCATION "${kvm_LIBRARY}"
|
|
INTERFACE_INCLUDE_DIRECTORIES "${kvm_INCLUDE_DIR}"
|
|
)
|
|
endif()
|
|
|
|
mark_as_advanced(kvm_INCLUDE_DIR kvm_LIBRARY)
|
|
endif()
|
|
|