Matt Morehouse | f051f5d | 2017-08-08 20:15:04 +0000 | [diff] [blame] | 1 | set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD}) |
Matt Morehouse | c01994b | 2017-08-23 19:58:07 +0000 | [diff] [blame] | 2 | set(CMAKE_CXX_FLAGS ${CXX_FLAGS_NOFUZZ}) |
Matt Morehouse | f051f5d | 2017-08-08 20:15:04 +0000 | [diff] [blame] | 3 | |
Nico Weber | 6043fd2 | 2018-05-15 16:37:00 +0000 | [diff] [blame] | 4 | # Needed by LLVM's CMake checks because this file defines multiple targets. |
Vitaly Buka | 410a6b2 | 2018-06-07 19:17:46 +0000 | [diff] [blame] | 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) |
Matt Morehouse | f051f5d | 2017-08-08 20:15:04 +0000 | [diff] [blame] | 7 | |
Matt Morehouse | eb1701f | 2017-10-11 15:13:53 +0000 | [diff] [blame] | 8 | add_clang_library(clangProtoToCXX proto_to_cxx.cpp |
Vitaly Buka | f0ada55 | 2017-08-09 04:45:00 +0000 | [diff] [blame] | 9 | DEPENDS clangCXXProto |
Matt Morehouse | eb1701f | 2017-10-11 15:13:53 +0000 | [diff] [blame] | 10 | LINK_LIBS clangCXXProto ${PROTOBUF_LIBRARIES} |
Vitaly Buka | f0ada55 | 2017-08-09 04:45:00 +0000 | [diff] [blame] | 11 | ) |
Matt Morehouse | f051f5d | 2017-08-08 20:15:04 +0000 | [diff] [blame] | 12 | |
Vitaly Buka | 410a6b2 | 2018-06-07 19:17:46 +0000 | [diff] [blame] | 13 | add_clang_library(clangLoopProtoToCXX loop_proto_to_cxx.cpp |
| 14 | DEPENDS clangCXXLoopProto |
| 15 | LINK_LIBS clangCXXLoopProto ${PROTOBUF_LIBRARIES} |
| 16 | ) |
| 17 | |
Matt Morehouse | f051f5d | 2017-08-08 20:15:04 +0000 | [diff] [blame] | 18 | add_clang_executable(clang-proto-to-cxx proto_to_cxx_main.cpp) |
Vitaly Buka | 410a6b2 | 2018-06-07 19:17:46 +0000 | [diff] [blame] | 19 | add_clang_executable(clang-loop-proto-to-cxx loop_proto_to_cxx_main.cpp) |
| 20 | |
Matt Morehouse | 5a5c1d1 | 2017-12-06 19:52:40 +0000 | [diff] [blame] | 21 | target_link_libraries(clang-proto-to-cxx PRIVATE clangProtoToCXX) |
Vitaly Buka | 410a6b2 | 2018-06-07 19:17:46 +0000 | [diff] [blame] | 22 | target_link_libraries(clang-loop-proto-to-cxx PRIVATE clangLoopProtoToCXX) |