CMakeLists.txt raw

   1  # Copyright (c) 2023-present The Limenka 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    ../fuzz.cpp
  11    ../util.cpp
  12  )
  13  
  14  target_link_libraries(test_fuzz
  15    PRIVATE
  16      core_interface
  17      test_util
  18      limenka_node
  19      Boost::headers
  20  )
  21  
  22  if(NOT FUZZ_BINARY_LINKS_WITHOUT_MAIN_FUNCTION)
  23    target_compile_definitions(test_fuzz PRIVATE PROVIDE_FUZZ_MAIN_FUNCTION)
  24  endif()
  25