mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-26 23:10:32 +00:00
3814ea95ee
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")
|