CMake -- Open Babel version?

Dear CMake gurus…

Is there any way to get a #define for the Open Babel version using
CMake?

I’m thinking of Ross’s auto-opt tool, which uses the new “fixed” atom
property, and a few fun extensions I have in mind. I know that “pkg-
config --modversion openbabel-2.0” will give me 2.1.1 or 2.2.0b1, etc.

I know how to do this with autoconf, but can we get something like
#define OPENBABEL_VERSION 2.2.0b1 in Avogadro?

Thanks,
-Geoff,

Yeah we can do it just need to add a line to make a command return value
goto a variable on the FindOpenBabel2.cmake file or something. I’ll
look into if noone gets around to it before I get a chance.


Donald

(Tue, Oct 16, 2007 at 10:54:39PM -0400) Geoffrey Hutchison geoff.hutchison@gmail.com:

Dear CMake gurus…

Is there any way to get a #define for the Open Babel version using
CMake?

I’m thinking of Ross’s auto-opt tool, which uses the new “fixed” atom
property, and a few fun extensions I have in mind. I know that “pkg-
config --modversion openbabel-2.0” will give me 2.1.1 or 2.2.0b1, etc.

I know how to do this with autoconf, but can we get something like
#define OPENBABEL_VERSION 2.2.0b1 in Avogadro?

Thanks,
-Geoff,


This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/


Avogadro-devel mailing list
Avogadro-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avogadro-devel

Moin

Kalzium is doing this for other libs.

macro_bool_to_01(OPENBABEL2_FOUND HAVE_OPENBABEL2)

define the #ifdef

There is a similar way to define a version-thingy. But I don’t know
exactly how to do it. If Donald cannot do it I will ask Alex.

Carsten

2007/10/17, Donald Ephraim Curtis d@milkbox.net:

Yeah we can do it just need to add a line to make a command return value
goto a variable on the FindOpenBabel2.cmake file or something. I’ll
look into if noone gets around to it before I get a chance.


Donald

(Tue, Oct 16, 2007 at 10:54:39PM -0400) Geoffrey Hutchison geoff.hutchison@gmail.com:

Dear CMake gurus…

Is there any way to get a #define for the Open Babel version using
CMake?

I’m thinking of Ross’s auto-opt tool, which uses the new “fixed” atom
property, and a few fun extensions I have in mind. I know that “pkg-
config --modversion openbabel-2.0” will give me 2.1.1 or 2.2.0b1, etc.

I know how to do this with autoconf, but can we get something like
#define OPENBABEL_VERSION 2.2.0b1 in Avogadro?

Thanks,
-Geoff,


This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/


Avogadro-devel mailing list
Avogadro-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avogadro-devel


This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/


Avogadro-devel mailing list
Avogadro-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avogadro-devel