2014-11-06 07:14:59 +08:00
|
|
|
# This file allows users to call find_package(Clang) and pick up our targets.
|
|
|
|
|
2016-06-30 05:59:19 +08:00
|
|
|
@CLANG_CONFIG_CODE@
|
|
|
|
|
2017-01-31 22:15:40 +08:00
|
|
|
find_package(LLVM REQUIRED CONFIG
|
|
|
|
HINTS "@CLANG_CONFIG_LLVM_CMAKE_DIR@")
|
|
|
|
|
2016-06-30 05:59:23 +08:00
|
|
|
set(CLANG_EXPORTED_TARGETS "@CLANG_EXPORTS@")
|
2016-06-30 05:59:19 +08:00
|
|
|
set(CLANG_CMAKE_DIR "@CLANG_CONFIG_CMAKE_DIR@")
|
2017-02-07 02:17:23 +08:00
|
|
|
set(CLANG_INCLUDE_DIRS "@CLANG_CONFIG_INCLUDE_DIRS@")
|
2020-06-30 20:11:28 +08:00
|
|
|
set(CLANG_LINK_CLANG_DYLIB "@CLANG_LINK_CLANG_DYLIB@")
|
2016-06-30 05:59:19 +08:00
|
|
|
|
2014-11-06 07:14:59 +08:00
|
|
|
# Provide all our library targets to users.
|
2020-10-02 05:35:28 +08:00
|
|
|
@CLANG_CONFIG_INCLUDE_EXPORTS@
|
2017-07-28 23:33:47 +08:00
|
|
|
|
|
|
|
# By creating clang-tablegen-targets here, subprojects that depend on Clang's
|
|
|
|
# tablegen-generated headers can always depend on this target whether building
|
|
|
|
# in-tree with Clang or not.
|
|
|
|
if(NOT TARGET clang-tablegen-targets)
|
|
|
|
add_custom_target(clang-tablegen-targets)
|
|
|
|
endif()
|