add_clang_executable(clang-proto-fuzzer ExampleClangProtoFuzzer.cpp)
target_link_libraries(clang-proto-fuzzer
${ProtobufMutator_LIBRARIES}
+ ${PROTOBUF_LIBRARIES}
clangCXXProto
clangHandleCXX
clangProtoToCXX
-set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD})
+set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} Support)
add_clang_library(clangHandleCXX
handle_cxx.cpp
LINK_LIBS
+ clangBasic
clangCodeGen
clangFrontend
clangLex
# an executable built from this directory.
set(LLVM_OPTIONAL_SOURCES proto_to_cxx.cpp proto_to_cxx_main.cpp)
-add_clang_library(clangProtoToCXX proto_to_cxx.cpp
+add_clang_library(clangProtoToCXX proto_to_cxx.cpp
DEPENDS clangCXXProto
- LINK_LIBS clangCXXProto
+ LINK_LIBS clangCXXProto ${PROTOBUF_LIBRARIES}
)
add_clang_executable(clang-proto-to-cxx proto_to_cxx_main.cpp)