1 set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD})
2 set(CMAKE_CXX_FLAGS ${CXX_FLAGS_NOFUZZ})
4 # Needed by LLVM's CMake checks because this file defines multiple targets.
5 set(LLVM_OPTIONAL_SOURCES proto_to_cxx.cpp proto_to_cxx_main.cpp
6 loop_proto_to_cxx.cpp loop_proto_to_cxx_main.cpp)
8 add_clang_library(clangProtoToCXX proto_to_cxx.cpp
10 LINK_LIBS clangCXXProto ${PROTOBUF_LIBRARIES}
13 add_clang_library(clangLoopProtoToCXX loop_proto_to_cxx.cpp
14 DEPENDS clangCXXLoopProto
15 LINK_LIBS clangCXXLoopProto ${PROTOBUF_LIBRARIES}
17 target_include_directories(clangProtoToCXX PRIVATE .)
18 target_include_directories(clangLoopProtoToCXX PRIVATE .)
20 add_clang_executable(clang-proto-to-cxx proto_to_cxx_main.cpp)
21 add_clang_executable(clang-loop-proto-to-cxx loop_proto_to_cxx_main.cpp)
23 target_link_libraries(clang-proto-to-cxx PRIVATE clangProtoToCXX)
24 target_link_libraries(clang-loop-proto-to-cxx PRIVATE clangLoopProtoToCXX)