File: CMakeLists.txt

package info (click to toggle)
rdkit 202503.1-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 220,160 kB
  • sloc: cpp: 399,240; python: 77,453; ansic: 25,517; java: 8,173; javascript: 4,005; sql: 2,389; yacc: 1,565; lex: 1,263; cs: 1,081; makefile: 580; xml: 229; fortran: 183; sh: 105
file content (31 lines) | stat: -rw-r--r-- 1,369 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
if(NOT LIB_FUZZING_ENGINE)
  message("LIB_FUZZING_ENGINE is not set, using standalone fuzz runner, no actual fuzzing will be done!")
  add_library(standalone_fuzz_runner STATIC standalone_fuzz_target_runner.cpp)
  set(LIB_FUZZING_ENGINE standalone_fuzz_runner)
endif()

if(NOT RDK_INSTALL_STATIC_LIBS OR NOT Boost_USE_STATIC_LIBS)
  message(SEND_ERROR "Fuzzing requires static linking!")
  message(FATAL_ERROR "Compile with -DRDK_INSTALL_STATIC_LIBS=ON and -DBoost_USE_STATIC_LIBS=ON")
endif()

include_directories ( "include" )

set(RDKit_LIBS
           ChemReactions_static FileParsers_static SmilesParse_static Depictor_static
           RDGeometryLib_static RDGeneral_static SubstructMatch_static Subgraphs_static
           MolDraw2D_static GraphMol_static RingDecomposerLib_static DistGeometry_static
           DistGeomHelpers_static MolAlign_static Optimizer_static ForceField_static
           ForceFieldHelpers_static Alignment_static ForceField_static MolTransforms_static
           EigenSolvers_static ForceFieldHelpers_static Alignment_static MolTransforms_static
           EigenSolvers_static
)

macro(fuzzer name)
  add_executable(${name} ${name}.cc)
  target_link_libraries(${name} rdkit_base ${RDKit_LIBS} ${LIB_FUZZING_ENGINE})
endmacro()

fuzzer(smiles_string_to_mol_fuzzer)
fuzzer(mol_data_stream_to_mol_fuzzer)
fuzzer(mol_deserialization_fuzzer)