xref: /netbsd-src/external/apache2/llvm/dist/clang/cmake/modules/ClangConfig.cmake.in (revision e038c9c4676b0f19b1b7dd08a940c6ed64a6d5ae)
17330f729Sjoerg# This file allows users to call find_package(Clang) and pick up our targets.
27330f729Sjoerg
37330f729Sjoerg@CLANG_CONFIG_CODE@
47330f729Sjoerg
57330f729Sjoergfind_package(LLVM REQUIRED CONFIG
67330f729Sjoerg             HINTS "@CLANG_CONFIG_LLVM_CMAKE_DIR@")
77330f729Sjoerg
87330f729Sjoergset(CLANG_EXPORTED_TARGETS "@CLANG_EXPORTS@")
97330f729Sjoergset(CLANG_CMAKE_DIR "@CLANG_CONFIG_CMAKE_DIR@")
107330f729Sjoergset(CLANG_INCLUDE_DIRS "@CLANG_CONFIG_INCLUDE_DIRS@")
11*e038c9c4Sjoergset(CLANG_LINK_CLANG_DYLIB "@CLANG_LINK_CLANG_DYLIB@")
127330f729Sjoerg
137330f729Sjoerg# Provide all our library targets to users.
14*e038c9c4Sjoerg@CLANG_CONFIG_INCLUDE_EXPORTS@
157330f729Sjoerg
167330f729Sjoerg# By creating clang-tablegen-targets here, subprojects that depend on Clang's
177330f729Sjoerg# tablegen-generated headers can always depend on this target whether building
187330f729Sjoerg# in-tree with Clang or not.
197330f729Sjoergif(NOT TARGET clang-tablegen-targets)
207330f729Sjoerg  add_custom_target(clang-tablegen-targets)
217330f729Sjoergendif()
22