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 | |
| 4 | # Hack to bypass LLVM's CMake source checks so we can have both a library and |
| 5 | # an executable built from this directory. |
| 6 | set(LLVM_OPTIONAL_SOURCES proto_to_cxx.cpp proto_to_cxx_main.cpp) |
| 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 | |
| 13 | add_clang_executable(clang-proto-to-cxx proto_to_cxx_main.cpp) |
| 14 | target_link_libraries(clang-proto-to-cxx clangProtoToCXX) |