build: Get rid of pkgconfig as much as possible (#1517)

This commit is contained in:
Nik
2024-01-26 12:13:22 +01:00
committed by GitHub
parent b2121b25c1
commit 6ae86ce906
10 changed files with 218 additions and 31 deletions

View File

@@ -0,0 +1,8 @@
find_path(CAPSTONE_INCLUDE_DIR capstone.h PATH_SUFFIXES capstone)
find_library(CAPSTONE_LIBRARY NAMES capstone)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Capstone DEFAULT_MSG CAPSTONE_LIBRARY CAPSTONE_INCLUDE_DIR)
mark_as_advanced(CAPSTONE_INCLUDE_DIR CAPSTONE_LIBRARY)