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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
set(configs_src
configs/Configuration.cpp
configs/Sp2Bond.cpp
configs/Tetrahedral.cpp
configs/AtropisomerBond.cpp)
set(rules_src
rules/Rule1a.cpp
rules/Rule1b.cpp
rules/Rule2.cpp
rules/Rule3.cpp
rules/Rule4a.cpp
rules/Rule4b.cpp
rules/Rule4c.cpp
rules/Rule5.cpp
rules/Rule5New.cpp
rules/Rule6.cpp
rules/SequenceRule.cpp)
rdkit_library(CIPLabeler
CIPMol.cpp CIPLabeler.cpp
Mancude.cpp Digraph.cpp Node.cpp Edge.cpp Sort.cpp
${configs_src} ${rules_src}
LINK_LIBRARIES GraphMol)
target_compile_definitions(CIPLabeler PRIVATE RDKIT_CIPLABELER_BUILD)
rdkit_headers(CIPLabeler.h
TooManyNodesException.h
DEST GraphMol/CIPLabeler)
rdkit_catch_test(testCIPLabeler catch_tests.cpp
CIPMol.cpp CIPLabeler.cpp
Mancude.cpp Digraph.cpp Node.cpp Edge.cpp Sort.cpp
${configs_src} ${rules_src}
LINK_LIBRARIES SmilesParse GraphMol FileParsers MarvinParser)
# Set the BUILD macro to keep dll linkage consistency, since, in order
# to test private, unexported functions, we are building the test from
# sources, and NOT linking to the lib.
if(RDK_BUILD_CPP_TESTS)
target_compile_definitions(testCIPLabeler PRIVATE RDKIT_CIPLABELER_BUILD)
endif()
if(RDK_BUILD_PYTHON_WRAPPERS)
add_subdirectory(Wrap)
endif()
|