blob: 36235a584bd1865596b80a335fb6da649a3fbeae [file] [log] [blame]
Matt Morehousef051f5d2017-08-08 20:15:04 +00001set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD})
Matt Morehousec01994b2017-08-23 19:58:07 +00002set(CMAKE_CXX_FLAGS ${CXX_FLAGS_NOFUZZ})
Matt Morehousef051f5d2017-08-08 20:15:04 +00003
4# Hack to bypass LLVM's CMake source checks so we can have both a library and
5# an executable built from this directory.
6set(LLVM_OPTIONAL_SOURCES proto_to_cxx.cpp proto_to_cxx_main.cpp)
7
Vitaly Bukaf0ada552017-08-09 04:45:00 +00008add_clang_library(clangProtoToCXX proto_to_cxx.cpp
9 DEPENDS clangCXXProto
10 LINK_LIBS clangCXXProto
11 )
Matt Morehousef051f5d2017-08-08 20:15:04 +000012
13add_clang_executable(clang-proto-to-cxx proto_to_cxx_main.cpp)
14target_link_libraries(clang-proto-to-cxx clangProtoToCXX)