15 clangStaticAnalyzerFrontend
16 clangStaticAnalyzerCheckers
17 clangStaticAnalyzerCore
20 set( LLVM_LINK_COMPONENTS
21 ${LLVM_TARGETS_TO_BUILD}
30 add_clang_executable(clang
37 set(CLANGXX_LINK_OR_COPY create_symlink)
39 set(CLANGXX_LINK_OR_COPY copy)
42 # Create the clang++ symlink in the build directory.
43 set(clang_pp "${LLVM_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/clang++${CMAKE_EXECUTABLE_SUFFIX}")
44 add_custom_target(clang++ ALL
45 ${CMAKE_COMMAND} -E ${CLANGXX_LINK_OR_COPY}
46 "${LLVM_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/clang${CMAKE_EXECUTABLE_SUFFIX}"
49 set_property(DIRECTORY APPEND
50 PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${clang_pp})
53 RUNTIME DESTINATION bin)
55 # Create the clang++ symlink at installation time.
56 install(SCRIPT clang_symlink.cmake -DCMAKE_INSTALL_PREFIX=\"${CMAKE_INSTALL_PREFIX}\")