Subversion Repositories QNX 8.QNX8 LLVM/Clang compiler suite

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
14 pmbaty 1
# This file allows users to call find_package(Clang) and pick up our targets.
2
 
3
# Compute the installation prefix from this LLVMConfig.cmake file location.
4
get_filename_component(CLANG_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
5
get_filename_component(CLANG_INSTALL_PREFIX "${CLANG_INSTALL_PREFIX}" PATH)
6
get_filename_component(CLANG_INSTALL_PREFIX "${CLANG_INSTALL_PREFIX}" PATH)
7
get_filename_component(CLANG_INSTALL_PREFIX "${CLANG_INSTALL_PREFIX}" PATH)
8
 
9
set(LLVM_VERSION 16.0.6)
10
find_package(LLVM ${LLVM_VERSION} EXACT REQUIRED CONFIG
11
             HINTS "${CLANG_INSTALL_PREFIX}/lib/cmake/llvm")
12
 
13
set(CLANG_EXPORTED_TARGETS "clang-tblgen;clangBasic;clangAPINotes;clangLex;clangParse;clangAST;clangDynamicASTMatchers;clangASTMatchers;clangCrossTU;clangSema;clangCodeGen;clangAnalysis;clangAnalysisFlowSensitive;clangAnalysisFlowSensitiveModels;clangEdit;clangExtractAPI;clangRewrite;clangARCMigrate;clangDriver;clangSerialization;clangRewriteFrontend;clangFrontend;clangFrontendTool;clangToolingCore;clangToolingInclusions;clangToolingInclusionsStdlib;clangToolingRefactoring;clangToolingASTDiff;clangToolingSyntax;clangDependencyScanning;clangTransformer;clangTooling;clangDirectoryWatcher;clangIndex;clangIndexSerialization;clangStaticAnalyzerCore;clangStaticAnalyzerCheckers;clangStaticAnalyzerFrontend;clangFormat;clangInterpreter;clangSupport;diagtool;clang;clang-format;clangHandleCXX;clangHandleLLVM;clang-linker-wrapper;clang-offload-packager;clang-offload-bundler;clang-scan-deps;clang-repl;clang-rename;clang-refactor;clang-cpp;clang-check;clang-extdef-mapping;libclang;amdgpu-arch;nvptx-arch")
14
set(CLANG_CMAKE_DIR "${CLANG_INSTALL_PREFIX}/lib/cmake/clang")
15
set(CLANG_INCLUDE_DIRS "${CLANG_INSTALL_PREFIX}/include")
16
set(CLANG_LINK_CLANG_DYLIB "OFF")
17
 
18
# Provide all our library targets to users.
19
include("${CLANG_CMAKE_DIR}/ClangTargets.cmake")
20
 
21
# By creating clang-tablegen-targets here, subprojects that depend on Clang's
22
# tablegen-generated headers can always depend on this target whether building
23
# in-tree with Clang or not.
24
if(NOT TARGET clang-tablegen-targets)
25
  add_custom_target(clang-tablegen-targets)
26
endif()