1 # This file allows users to call find_package(Clang) and pick up our targets.
5 set(LLVM_VERSION @LLVM_VERSION_MAJOR@.@LLVM_VERSION_MINOR@.@LLVM_VERSION_PATCH@)
6 find_package(LLVM ${LLVM_VERSION} EXACT REQUIRED CONFIG
7 HINTS "@CLANG_CONFIG_LLVM_CMAKE_DIR@")
9 set(CLANG_EXPORTED_TARGETS "@CLANG_EXPORTS@")
10 set(CLANG_CMAKE_DIR "@CLANG_CONFIG_CMAKE_DIR@")
11 set(CLANG_INCLUDE_DIRS "@CLANG_CONFIG_INCLUDE_DIRS@")
12 set(CLANG_LINK_CLANG_DYLIB "@CLANG_LINK_CLANG_DYLIB@")
14 # Provide all our library targets to users.
15 @CLANG_CONFIG_INCLUDE_EXPORTS@
17 # By creating clang-tablegen-targets here, subprojects that depend on Clang's
18 # tablegen-generated headers can always depend on this target whether building
19 # in-tree with Clang or not.
20 if(NOT TARGET clang-tablegen-targets)
21 add_custom_target(clang-tablegen-targets)