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