1set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD})
2set(CMAKE_CXX_FLAGS ${CXX_FLAGS_NOFUZZ})
3
4# Needed by LLVM's CMake checks because this file defines multiple targets.
5set(LLVM_OPTIONAL_SOURCES loop_proto_to_llvm.cpp loop_proto_to_llvm_main.cpp)
6
7add_clang_library(clangLoopProtoToLLVM loop_proto_to_llvm.cpp
8                  DEPENDS clangCXXLoopProto
9                  LINK_LIBS clangCXXLoopProto ${PROTOBUF_LIBRARIES}
10                  )
11
12add_clang_executable(clang-loop-proto-to-llvm loop_proto_to_llvm_main.cpp)
13
14target_link_libraries(clang-loop-proto-to-llvm PRIVATE clangLoopProtoToLLVM)
15