[CMake] Win32: exporting symbols for DLLs - simpler method ?

Hendrik Sattler post at hendrik-sattler.de
Fri Nov 23 03:59:22 EST 2007


Quoting Stephen Collyer <scollyer at netspinner.co.uk>:
> and so on. What I'd like to do is to have a single #define
> (LIB_EXPORTS or something) that is set appropriately somehow.
>
> Is this possible ? I don't see how at the moment, but the
> method I'm using at the moment is rather tedious and I'd like
> to simplify it, if possible.

See cmake help for SET_TARGET_PROPERTIES and there the DEFINE_SYMBOL setting

HS




More information about the CMake mailing list