2017-08-09 04:15:04 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD})
|
2017-08-24 03:58:07 +08:00
|
|
|
set(CMAKE_CXX_FLAGS ${CXX_FLAGS_NOFUZZ})
|
2017-08-09 04:15:04 +08:00
|
|
|
|
2018-05-16 00:37:00 +08:00
|
|
|
# Needed by LLVM's CMake checks because this file defines multiple targets.
|
2017-08-09 04:15:04 +08:00
|
|
|
set(LLVM_OPTIONAL_SOURCES proto_to_cxx.cpp proto_to_cxx_main.cpp)
|
|
|
|
|
2017-10-11 23:13:53 +08:00
|
|
|
add_clang_library(clangProtoToCXX proto_to_cxx.cpp
|
2017-08-09 12:45:00 +08:00
|
|
|
DEPENDS clangCXXProto
|
2017-10-11 23:13:53 +08:00
|
|
|
LINK_LIBS clangCXXProto ${PROTOBUF_LIBRARIES}
|
2017-08-09 12:45:00 +08:00
|
|
|
)
|
2017-08-09 04:15:04 +08:00
|
|
|
|
|
|
|
add_clang_executable(clang-proto-to-cxx proto_to_cxx_main.cpp)
|
2017-12-07 03:52:40 +08:00
|
|
|
target_link_libraries(clang-proto-to-cxx PRIVATE clangProtoToCXX)
|