Re: [Open Babel] how to use CMAKE_PREFIX_PATH with openbabel

2017-06-07 Thread Davide Olianas
Il 07/06/2017 18:04, Geoffrey Hutchison ha scritto: No, you want cmake -DOPENBABEL2_INCLUDE_DIR=/home/davide/opt/include/ -DOPENBABEL2_LIBRARIES=/home/davide/opt/lib/ If I comment out the following two lines in my project CMakeLists.txt, #set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/mo

Re: [Open Babel] how to use CMAKE_PREFIX_PATH with openbabel

2017-06-07 Thread David Hall
since FindOpenBabel2.cmake uses pkg-config, you can do something like PKG_CONFIG_PATH=~/opt/lib/pkgconfig/ cmake .. That said, I believe there may a better way to link to openbabel with cmake using the files in: ~/opt/lib/cmake/openbabel2/ but I don't know what that is. On Jun 7, 2017, at 4:22

Re: [Open Babel] how to use CMAKE_PREFIX_PATH with openbabel

2017-06-07 Thread Geoffrey Hutchison
> Setting -DOPENBABEL2_INCLUDE_DIR and -DOPENBABEL2_LIBRARIES on the other hand > doesn't work. What should I set those to? > > cmake -DOPENBABEL2_INCLUDE_DIR=/home/davide/opt/include/openbabel-2.0/ > -DOPENBABEL2_LIBRARIES=/home/davide/opt/lib/ .. No, you want cmake -DOPENBABEL2_INCLUDE_DIR

Re: [Open Babel] how to use CMAKE_PREFIX_PATH with openbabel

2017-06-07 Thread Davide Olianas
Il 07/06/2017 14:23, Noel O'Boyle ha scritto: Does it work if you define -DOPENBABEL2_INCLUDE_DIR and -DOPENBABEL2_LIBRARIES directly? I note that very few of the Find modules that come with CMake actually use this variable. It's usually handled indirectly by pkgconfig via -DPKG_CONFIG_USE_CMAKE

Re: [Open Babel] how to use CMAKE_PREFIX_PATH with openbabel

2017-06-07 Thread Noel O'Boyle
Does it work if you define -DOPENBABEL2_INCLUDE_DIR and -DOPENBABEL2_LIBRARIES directly? I note that very few of the Find modules that come with CMake actually use this variable. It's usually handled indirectly by pkgconfig via -DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=TRUE. I haven't tested whether this