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
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
> 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
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
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
Hello,
the openbabel version shipped with my distribution (ubuntu 16.04) is
quite old; I’d like to link my programs to the most recent one, which I
installed in |~/opt| using the option |CMAKE_INSTALL_PREFIX=~/opt|.
Sadly, the environment variable CMAKE_PREFIX_PATH doesn’t appear to be
used