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.
|
2018-06-08 03:17:46 +08:00
|
|
|
set(LLVM_OPTIONAL_SOURCES proto_to_cxx.cpp proto_to_cxx_main.cpp
|
|
|
|
loop_proto_to_cxx.cpp loop_proto_to_cxx_main.cpp)
|
2017-08-09 04:15:04 +08:00
|
|
|
|
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
|
|
|
|
2018-06-08 03:17:46 +08:00
|
|
|
add_clang_library(clangLoopProtoToCXX loop_proto_to_cxx.cpp
|
|
|
|
DEPENDS clangCXXLoopProto
|
|
|
|
LINK_LIBS clangCXXLoopProto ${PROTOBUF_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
2017-08-09 04:15:04 +08:00
|
|
|
add_clang_executable(clang-proto-to-cxx proto_to_cxx_main.cpp)
|
2018-06-08 03:17:46 +08:00
|
|
|
add_clang_executable(clang-loop-proto-to-cxx loop_proto_to_cxx_main.cpp)
|
|
|
|
|
2017-12-07 03:52:40 +08:00
|
|
|
target_link_libraries(clang-proto-to-cxx PRIVATE clangProtoToCXX)
|
2018-06-08 03:17:46 +08:00
|
|
|
target_link_libraries(clang-loop-proto-to-cxx PRIVATE clangLoopProtoToCXX)
|