111 Commits

Author SHA1 Message Date
Paolo Tosco
97d147b3f1 - fixes the dynamic/static library CMake logic (#1875) 2018-05-27 07:13:03 +02:00
Paolo Tosco
c08ea49bda - enable building DLLs on Windows (#1861)
* - enable building DLLs on Windows

* - export.h and test.h are now auto-generated by CMake
2018-05-16 08:42:41 +02:00
Greg Landrum
26f1f4cf01 builds on ubuntu 18.04 (#1858) 2018-05-10 05:04:39 +02:00
Greg Landrum
0959261f37 Fixes #1454 (#1838)
* Fixes #1454; still needs a bit more thinking though

* forgot the necessary version bump

* review related cleanup and a fix to allow the SWIG wrappers to be built
2018-05-07 09:48:47 -04:00
Greg Landrum
dc2fc401f1 allow libs to not be installed (#1832) 2018-04-21 07:27:37 +02:00
Greg Landrum
044bb83bd0 Fix python linkage (#1808)
* apply (manually) #1807 from @bp-kelley to modern_cxx branch and fix (hopefully) a windows problem

* another windows problem

* another windows problem

* windows now builds locally

* update link targets
2018-04-05 06:16:17 +02:00
Greg Landrum
38a449a03d fix an irritating cmake problem (#1715) 2018-01-10 16:14:58 -05:00
Greg Landrum
c7da217d13 update static linkage too 2018-01-01 08:50:42 +01:00
Greg Landrum
62d53d2df6 help with the windows builds 2017-12-28 06:09:14 +00:00
Matt Swain
15c31e1f88 Update embedded InChI to v1.05 (#1684)
* Update download-inchi.sh for InChI 1.05

* Fix downloadAndCheckMD5

* Update FindInchi.cmake for InChI 1.05

* Update CMakeLists.txt for InChI 1.05
2017-12-21 05:45:24 +01:00
Greg Landrum
03e351e68b remove the dependency of the static libs on the dynamic libs 2017-11-25 14:07:01 +01:00
Patrick Avery
206e8a8e17 Update CPack to create .deb files correctly (#1580)
* Update CPack to create .deb files correctly

* get this working with debs
2017-11-15 06:51:38 +01:00
Alain Vaucher
7795a425ff Further cmake improvements (#1515)
* New syntax to import Qt5 dependency in MolDraw2D

* In QTDemo, not necessary to import Qt explicitly because it is automatically imported through target MolDraw2D

* improve import of Cairo dependency

* Remove explicit linking of Cairo in C++ examples

* Use imported targets for Boost

* Using imported CMake targets for Eigen

* Use imported targets for Threads

* Simplify sample CMakeLists

* Remove duplication

* a couple small changes for travis

* typo

* update toolchain to trusty

* switch to requiring at least boost 1.56

* typo

* update boost dependency to pull in the build that has more libraries

* meaningless commit to trigger travis

* switch to ust libc++

* install libc++

* check abi

* try the other one; disable py27 for the moment to speed things up

* switch to c++11, that seems necessary with the conda boost builds at the moment

* re-enable python2.7
2017-08-07 15:49:08 +02:00
Alain Vaucher
21e6b81935 Merge branch 'master' into modern-cmake 2017-07-01 17:59:14 +02:00
Alain Vaucher
7c22e95fbd Setting correct dependencies for the static variants of the libraries 2017-07-01 17:18:51 +02:00
Alain Vaucher
9261d8c74b Linking against the interface library also for the static variant 2017-07-01 14:10:18 +02:00
Alain Vaucher
5bdf2a3cf4 Add INTERFACE library, rdkit_base, against which all other rdkit libraries will link 2017-07-01 13:40:34 +02:00
Paolo Tosco
ea6cfe35ee - updated FindCairo.cmake (#1455) 2017-06-29 20:33:12 +02:00
Greg Landrum
1d04eb3351 add "RDKit" to the beginning of all library names (#1349) 2017-03-20 09:33:13 -04:00
gedeck
0845573a45 Script PythonFormat uses yapf to check the formatting of Python files 2016-10-29 17:13:13 -04:00
Greg Landrum
4f2ec84e7b Add some 3D molecular descriptors (#1084)
* update .gitignore

* foundation for 3D descriptors
move PBF into core

* cleanup work

* a bit more cleanup

* move the principal moments calc to MolTransforms

* cleanup

* cleanups

* add caching of the principal moments and values

* do not include the 3D descriptors in MolDescriptors.h

* the properties are computed

* add PMI descriptors and tests

* add tests for NPR descriptors

* return 0 when the largest PMI is zero

* PMI edge case tests

* NPR edge case tests

* PBF edge case tests

* PBF edge case tests

* more edge cases

* add a few more 3d descriptors

* add defns to docs

* tests for the new descriptors

* add versions to new descriptors

* add 3d descriptors to python wrapper

* add eigen support to the travis build

* try to get non-windows builds working

* remove computeCovarianceMatrix() from java wrapper

* make pmi property names "private"
2016-10-10 08:34:08 -04:00
gedeck
e9af48ffd7 Issue1071/yapf (#1078)
* Issue #1071: add yapf configuration file

* yapf formatting of Code directory

* yapf formatting of Contrib directory

* yapf formatting of Data directory

* yapf formatting of Docs directory

* yapf formatting of External directory

* yapf formatting of Projects directory

* yapf formatting of Regress directory

* yapf formatting of Scripts directory

* yapf formatting of Web directory

* yapf formatting of rdkit directory
2016-09-23 04:58:46 +02:00
Paolo Tosco
5d3bb11488 Fix Inchi being hardcoded into PostgreSQL (#1009)
* - this should fix the problem with "Inchi" being hardcoded into PostgreSQL

* - moved the InChI check code out of the main CMakeLists.txt
  into FindInchi.cmake
2016-08-08 11:22:56 +02:00
Paolo Tosco
e642c46525 Made DistGeomHelpers test robust against small 3D coordinate variations (#961)
* - made Code/GraphMol/DistGeomHelpers/testDgeomHelpers.cpp and Code/GraphMol/DistGeomHelpers/Wrap/testDistGeom.py
  more robust against very small coordinate variations which may induce UFF energy variations in the 1-kcal/mol range.
  This was observed in a single case using the MinGW 32-bit g++ compiler. The check for identity of conformations
  between single- and multi-threaded runs is now complemented by a 3D coordinate MSD check

* - lowered the energy tolerance to 1.0 kcal/mol

* - added rdkitBuild string with compile-time information
- added runtime check in Code/GraphMol/DistGeomHelpers/testDgeomHelpers.cpp
  and Code/GraphMol/DistGeomHelpers/Wrap/testDistGeom.py
  to use more lenient tolerances with MinGW compilers
2016-06-28 20:11:31 +02:00
Paolo Tosco
31f2b33cbc - download URLs and MD5 checksums can now be overridden with CMake
definitions
- InChI and AvalonTools README files were updated accordingly
2016-02-28 07:49:45 +00:00
Paolo Tosco
8444ae2190 - added compatibility with CMake < 2.8.12 which lacks the DIRECTORY
get_filename_component argument
2016-02-27 22:47:18 +00:00
Paolo Tosco
4363a40489 - added a downloadAndCheckMD5() function which attempts to use CMake
DOWNLOAD first, and if it fails it falls back to curl (Unix, OS X)
  or Powershell (Windows). The MD% sum is check with the nativa CMake
  command md5sum
2016-02-27 22:15:46 +00:00
Andrew Dalke
6d66534743 removed bare except statements 2015-09-07 13:27:14 +02:00
Greg Landrum
9e8c4b24ba Merge pull request #412 from rdkit/new_drawing_Jan2015
New C++ drawing code
2015-01-20 02:37:03 -05:00
Brian Kelley
626f8b522d RDKit learns how to compute code coverage for tests
To use code coverage:

cmake -DCMAKE_BUILD_TYPE=Debug \
      -DRDK_USE_FLEXBISON=ON \
      -DRDK_TEST_COVERAGE=ON \
      <path to rdkit source tree>

make install
make RDKit_coverage

Note, when making RDKit_coverage, your python paths, (DY)LD_LIBRARY paths must be
set up correctly.  If any of the tests fail, the coverage generator will most
likely fail and certainly will not be complete.

Here is an example from my OSX Box (note, I set the install directory to rdkit_build via)
cmake -DCMAKE_INSTALL_PREFIX=`pwd`/rdkit_build \
    ...

RDBASE=<path to rdkit source>  DYLD_LIBRARY_PATH=`pwd`/rdkit_build/lib \
 PYTHONPATH=`pwd`/rdkit_build/lib/python2.7/site-packages \
 make RDKit_coverage

open coverage/index.html in a browser
2015-01-15 11:53:27 -05:00
Greg Landrum
a65570b344 this now builds as part of the base RDKit 2015-01-05 19:02:51 +01:00
David Hall
49138316b6 use print function in FindNumpy.cmake for python3 compatibility 2014-11-07 13:43:46 -05:00
Riccardo Vianello
b1d8707c13 support running tests when building inside the source tree on windows 2014-04-12 15:24:29 +02:00
Greg Landrum
a53cb2c9e6 Fixes #185 2014-01-01 08:18:17 +01:00
Greg Landrum
e6360e62ca update build system for windows 2013-04-18 02:33:41 +00:00
Greg Landrum
e566afff2f merge in Riccardo Vianello's changes to make it easier to build c++ programs using the RDKit with cmake 2011-08-07 16:34:42 +00:00
Eddie Cao
fe75f9a5dc fix system inchi detection; system inchi takes precedence over local one 2011-07-12 00:16:28 +00:00
Greg Landrum
db63eca04c work to get the inchi code working with a pre-installed inchi library 2011-07-09 06:21:08 +00:00
Greg Landrum
aa20e5eb68 start adding support for cpack; update copyright in license.txt 2011-05-09 03:39:40 +00:00
Greg Landrum
4ba2430aa5 allow the installation of _static libs to be skipped 2011-01-13 04:12:07 +00:00
Greg Landrum
2353d55b68 add static libraries for mac and linux;
use those for the SWIG wrappers.
this configuration needs work before it will work on windows
2010-10-06 07:24:33 +00:00
Greg Landrum
78c28df146 version name reordering 2010-09-29 04:08:09 +00:00
Greg Landrum
bbe21ad0b6 get this building on the mac 2010-09-19 15:04:06 +00:00
Greg Landrum
7d5e4fe99c remove version numbers from windows libraries 2010-09-08 04:11:26 +00:00
Greg Landrum
cb6cdb99b3 merge in a set of changes from Riccardo V. to install .h files as well;
this needs more testing.
2010-09-04 14:07:22 +00:00
Greg Landrum
25bef823af merge in changes allowing in-source builds to work from Riccardo V. 2010-08-10 04:20:14 +00:00
Greg Landrum
0b88b9e674 allow in-source installs again 2010-08-03 04:22:04 +00:00
Greg Landrum
415693d1af next round of mods from Riccardo V. 2010-08-02 19:15:32 +00:00
Greg Landrum
7dcb56d868 merge in changes from Gianluca Sforna 2010-07-12 04:12:39 +00:00
Greg Landrum
3958bd59a9 make sure libs get installed on windows too 2010-07-02 03:40:25 +00:00