[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / tools / clang-fuzzer / proto-to-cxx / CMakeLists.txt
blobbaefc8a30141065c6e943526b81f5d1bc145b522
1 set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD})
2 set(CMAKE_CXX_FLAGS ${CXX_FLAGS_NOFUZZ})
4 # Needed by LLVM's CMake checks because this file defines multiple targets.
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)
8 add_clang_library(clangProtoToCXX proto_to_cxx.cpp
9                   DEPENDS clangCXXProto
10                   LINK_LIBS clangCXXProto ${PROTOBUF_LIBRARIES}
11                   )
13 add_clang_library(clangLoopProtoToCXX loop_proto_to_cxx.cpp
14                   DEPENDS clangCXXLoopProto
15                   LINK_LIBS clangCXXLoopProto ${PROTOBUF_LIBRARIES}
16                   )
17 target_include_directories(clangProtoToCXX PRIVATE .)
18 target_include_directories(clangLoopProtoToCXX PRIVATE .)
20 add_clang_executable(clang-proto-to-cxx proto_to_cxx_main.cpp)
21 add_clang_executable(clang-loop-proto-to-cxx loop_proto_to_cxx_main.cpp)
23 target_link_libraries(clang-proto-to-cxx PRIVATE clangProtoToCXX)
24 target_link_libraries(clang-loop-proto-to-cxx PRIVATE clangLoopProtoToCXX)