[CMake] cmake config.h
luxInteg
lux-integ at btconnect.com
Sun Nov 28 16:07:25 EST 2010
On Sunday 28 November 2010 15:21:45 Michael Jackson wrote:
> Those variables are specific for the project you are trying to
> convert. For example if this was the LibTiff project then you might
> have something like:
>
> #define PACKAGE "libTif"
> #define PACKAGE_BUGREPORT "bugs at libtiff.com"
> #define PACKAGE_VERSION "8.9.10"
>
> You can set these as CMake varables in your CMakeLists.txt file as the
> following:
>
> set (MY_PACKAGE "MyProject")
>
> Then in the config.h.in you would have
>
> #cmakedefine PACKAGE @MY_PACKAGE@
>
> And do that for the remaining variables in the list you provided.
v helpful thanks
More information about the CMake
mailing list