mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-29 11:17:28 +00:00
2b2a961309
Install a cmake config file. Copied exactly from how clang exports. I also wasn't sure whether the canonical capitalization is "lld" or "LLD". The project() is still calling this lld, but most places seemed to capitalize it.
14 lines
399 B
CMake
14 lines
399 B
CMake
# This file allows users to call find_package(LLD) and pick up our targets.
|
|
|
|
@LLD_CONFIG_CODE@
|
|
|
|
find_package(LLVM REQUIRED CONFIG
|
|
HINTS "@LLD_CONFIG_LLVM_CMAKE_DIR@")
|
|
|
|
set(LLD_EXPORTED_TARGETS "@LLD_EXPORTS@")
|
|
set(LLD_CMAKE_DIR "@LLD_CONFIG_CMAKE_DIR@")
|
|
set(LLD_INCLUDE_DIRS "@LLD_CONFIG_INCLUDE_DIRS@")
|
|
|
|
# Provide all our library targets to users.
|
|
include("@LLD_CONFIG_EXPORTS_FILE@")
|