File: Findprocps.cmake

package info (click to toggle)
apitrace 9.0%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 15,452 kB
  • sloc: cpp: 179,068; ansic: 55,025; python: 33,678; makefile: 103; sh: 103
file content (16 lines) | stat: -rw-r--r-- 427 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# - try to find procps directories and libraries
#
# Once done this will define:
#
#  PROCPS_FOUND
#  PROCPS_INCLUDE_DIR
#  PROCPS_LIBRARY
#

include (FindPackageHandleStandardArgs)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
    find_path (PROCPS_INCLUDE_DIR proc/readproc.h)
    find_library (PROCPS_LIBRARY NAMES proc procps)
    find_package_handle_standard_args (procps DEFAULT_MSG PROCPS_LIBRARY PROCPS_INCLUDE_DIR)
endif()