You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
641 B

  1. # - Try to find SECCOMP
  2. # Once done, this will define
  3. #
  4. # SECCOMP_FOUND - system has SECCOMP
  5. # SECCOMP_INCLUDE_DIRS - the SECCOMP include directories
  6. # SECCOMP_LIBRARIES - the SECCOMP library
  7. find_package(PkgConfig)
  8. pkg_check_modules(SECCOMP_PKGCONF libseccomp)
  9. find_path(SECCOMP_INCLUDE_DIRS
  10. NAMES seccomp.h
  11. PATHS ${SECCOMP_PKGCONF_INCLUDE_DIRS}
  12. )
  13. find_library(SECCOMP_LIBRARIES
  14. NAMES seccomp
  15. PATHS ${SECCOMP_PKGCONF_LIBRARY_DIRS}
  16. )
  17. include(FindPackageHandleStandardArgs)
  18. find_package_handle_standard_args(SECCOMP DEFAULT_MSG SECCOMP_INCLUDE_DIRS SECCOMP_LIBRARIES)
  19. mark_as_advanced(SECCOMP_INCLUDE_DIRS SECCOMP_LIBRARIES)