Files
rdkit/Code/GraphMol/FileParsers/CMakeLists.txt
Greg Landrum 45bf58754a Cleanup some cmake dependencies (#3077)
* change minimal cmake version to a consistent 3.5

* progress towards a cleanup

* get the basic python deps working

* two more libs

* another round of changes
all tests pass at this point

* next round of changes
all tests pass at this point

* close to done
all tests pass

* very close

* almost done

* shift the RDBoost dependencies around a bit

* remove an extraneous python linkage
this is trying to get the mac builds working again

* Only link to python if it was built shared (#3091)

* change in response to review

Co-Authored-By: Ric <ricrogz@users.noreply.github.com>

* move that suppression of the maybe-uninitialized warning to BoostStartInclude.h

Co-authored-by: Brian Kelley <fustigator@gmail.com>
Co-authored-by: Ric <ricrogz@users.noreply.github.com>
2020-04-17 14:34:23 +02:00

82 lines
2.7 KiB
CMake

remove_definitions(-DRDKIT_GRAPHMOL_BUILD)
add_definitions(-DRDKIT_FILEPARSERS_BUILD)
if(RDK_USE_BOOST_IOSTREAMS)
if(WIN32)
find_package(Boost 1.56.0 COMPONENTS system iostreams REQUIRED)
find_package(Boost 1.56.0 COMPONENTS zlib)
set (link_iostreams ${Boost_LIBRARIES})
if (NOT Boost_USE_STATIC_LIBS)
add_definitions("-DBOOST_IOSTREAMS_DYN_LINK")
endif()
else()
find_package(Boost 1.56.0 COMPONENTS system iostreams REQUIRED)
set (link_iostreams ${Boost_LIBRARIES})
if (NOT Boost_USE_STATIC_LIBS)
add_definitions("-DBOOST_IOSTREAMS_DYN_LINK")
endif()
endif()
ADD_DEFINITIONS("-DRDK_USE_BOOST_IOSTREAMS")
endif(RDK_USE_BOOST_IOSTREAMS)
if(RDK_BUILD_COORDGEN_SUPPORT)
include_directories(${maeparser_INCLUDE_DIRS})
set (maesupplier MaeMolSupplier.cpp)
endif()
if(RDK_USE_BOOST_REGEX)
add_definitions(-DRDKIT_USE_BOOST_REGEX)
find_package(Boost 1.58.0 COMPONENTS regex REQUIRED)
set(regex_lib Boost::regex)
endif()
rdkit_library(FileParsers
Mol2FileParser.cpp MolFileParser.cpp
MolSGroupParsing.cpp MolSGroupWriting.cpp
MolFileStereochem.cpp MolFileWriter.cpp
ForwardSDMolSupplier.cpp SDMolSupplier.cpp SDWriter.cpp
SmilesMolSupplier.cpp SmilesWriter.cpp
TDTMolSupplier.cpp TDTWriter.cpp
TplFileParser.cpp TplFileWriter.cpp
PDBParser.cpp PDBWriter.cpp PDBSupplier.cpp
XYZFileWriter.cpp
${maesupplier}
ProximityBonds.cpp
SequenceParsers.cpp SequenceWriters.cpp
SVGParser.cpp
LINK_LIBRARIES Depictor SmilesParse GraphMol ${RDK_COORDGEN_LIBS} ${regex_lib} ${link_iostreams})
rdkit_headers(FileParsers.h
FileParserUtils.h
MolFileStereochem.h
MolSupplier.h
MolWriters.h
SequenceParsers.h SequenceWriters.h
DEST GraphMol/FileParsers)
rdkit_test(fileParsersTest1 test1.cpp
LINK_LIBRARIES FileParsers SubstructMatch )
rdkit_test(testMolSupplier testMolSupplier.cpp
LINK_LIBRARIES FileParsers RDStreams)
rdkit_test(testMolWriter testMolWriter.cpp LINK_LIBRARIES FileParsers )
rdkit_test(testTplParser testTpls.cpp LINK_LIBRARIES FileParsers )
rdkit_test(testMol2ToMol testMol2ToMol.cpp LINK_LIBRARIES FileParsers )
rdkit_test(testSequence testSequence.cpp LINK_LIBRARIES FileParsers )
rdkit_test(testExtendedStereoParsing testExtendedStereoParsing.cpp
LINK_LIBRARIES FileParsers )
rdkit_catch_test(fileParsersCatchTest file_parsers_catch.cpp catch_main.cpp
LINK_LIBRARIES FileParsers )
rdkit_catch_test(testPropertyLists testPropertyLists.cpp catch_main.cpp
LINK_LIBRARIES FileParsers )