Hi,
I'm trying to link my project to the development version of openbabel2
which is installed in $HOME/openbabel-dev/install
I there added the FindOpenBabel2.cmake that floats around the internet
to my software packages cmake directory, and then added the stuff below
to the software package's CMakeLists.txt:
option(GMX_OPENBABEL2 "Add support for OpenBabel2 functionality" OFF)
if (GMX_OPENBABEL2)
find_package(OpenBabel2 REQUIRED)
set(PKG_OPENBABEL2 "")
if (OPENBABEL2_FOUND)
include_directories(${OPENBABEL2_INCLUDE_DIR})
set(PKG_OPENBABEL2 openbabel2)
set(HAVE_LIBOPENBABEL2 1)
list(APPEND GMX_EXTRA_LIBRARIES ${OPENBABEL2_LIBRARIES})
endif(OPENBABEL2_FOUND)
endif (GMX_OPENBABEL2)
and used the following cmake flag:
-DCMAKE_PREFIX_PATH=$HOME/openbabel-dev/install
using this setup the openbabel library is not found, that is I don't get
the exact path to it. If I instead use the system-wide installed version
cmake-ing and linking works fine. Any clues to whether this could be due
to the above cmake code, the FindOpenBabel2.cmake or something else?
Thanks,
--
David van der Spoel, Ph.D., Professor of Biology
Dept. of Cell & Molec. Biol., Uppsala University.
Box 596, 75124 Uppsala, Sweden. Phone: +46184714205.
[email protected] http://folding.bmc.uu.se
------------------------------------------------------------------------------
WINDOWS 8 is here.
Millions of people. Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/
_______________________________________________
OpenBabel-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss