mirror of
https://github.com/capstone-engine/capstone.git
synced 2025-02-19 05:49:06 +00:00

These additions simplify using capstone in cmake projects: find_package(capstone CONFIG REQUIRED) add_executable(main main.cpp) target_link_libraries(main PRIVATE capstone::capstone-static)
7 lines
243 B
CMake
7 lines
243 B
CMake
@PACKAGE_INIT@
|
|
|
|
set_and_check(capstone_INCLUDE_DIR "${PACKAGE_PREFIX_DIR}/@CMAKE_INSTALL_INCLUDEDIR@")
|
|
set_and_check(capstone_LIB_DIR "${PACKAGE_PREFIX_DIR}/@CMAKE_INSTALL_LIBDIR@")
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/capstone-targets.cmake")
|