[CMake] User generated header file

John Drescher drescherjm at gmail.com
Mon Sep 19 12:04:59 EDT 2011


> On Mon, Sep 19, 2011 at 14:13, John Drescher <drescherjm at gmail.com> wrote:
>> My question is can't you have CMake generate the header for the user
>> instead of them supplying a file? Is it just defines in this header?
>>
>
> It's basically user/site-specific defines that is based on user
> preferences and availability of libraries/devices on their Windows
> platform. At the moment for Windows Visual Studio users we force them
> to do this manually.
>

To me this sounds like something that would be perfect to do with
CMake options and some usage of find_libraray, maybe some environment
variables to help out. However I do not mean to tell you how to
configure your software..

John


More information about the CMake mailing list