CMakeLists.txt raw

   1  # Copyright (c) 2023-present The Bitcoin Core developers
   2  # Distributed under the MIT software license, see the accompanying
   3  # file COPYING or https://opensource.org/license/mit/.
   4  
   5  add_library(test_fuzz STATIC EXCLUDE_FROM_ALL
   6    check_globals.cpp
   7    descriptor.cpp
   8    mempool.cpp
   9    net.cpp
  10    threadinterrupt.cpp
  11    ../fuzz.cpp
  12    ../util.cpp
  13  )
  14  
  15  target_link_libraries(test_fuzz
  16    PRIVATE
  17      core_interface
  18      test_util
  19      bitcoin_node
  20      Boost::headers
  21  )
  22  
  23  if(NOT FUZZ_BINARY_LINKS_WITHOUT_MAIN_FUNCTION)
  24    target_compile_definitions(test_fuzz PRIVATE PROVIDE_FUZZ_MAIN_FUNCTION)
  25  endif()
  26