capstone/capstone-config.cmake.in
Matthias C. M. Troffaes 3814ea95ee Add cmake config and export targets. (#1637)
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)
2020-06-02 20:58:33 +08:00

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")