[CMake] libraryname decoration

Olaf van der Spek olafvdspek at gmail.com
Fri Jul 30 07:55:56 EDT 2010

On Fri, Jul 30, 2010 at 1:45 PM, Ryan Pavlik <rpavlik at iastate.edu> wrote:
> If you want to avoid code duplication, write a cmake module that does it
> then share it with the world.  This doesn't have to be a top-down solution:
> if you think you have the best library decoration system wrapped in a tidy,
> documented module, then there's nothing stopping you from publicizing it and
> encouraging projects (instead of project tools) to use it.  De-facto, not
> de-jure.
> (In general, this is my approach to things I'd like CMake to do that it
> doesn't yet, and really, if it doesn't need a core change to be possible,
> it's probably the best place for the code.  Look in any of my projects on
> GitHub, like http://github.com/rpavlik/physical-modeling-utilities , for:
> CreateLaunchers.cmake
> CreateDashboardScripts.cmake
> CppcheckTargets.cmake
> DoxygenTargets.cmake
> SetDefaultBuildType.cmake
> EnableExtraCompilerWarnings.cmake
> to get an idea of how I solve these things - I solve them once in a module,
> which makes its way into open source code, and hopefully if folks want to do
> similar things they end up finding these modules, and/or even improving
> them...)

Thanks, I'll have a look.


More information about the CMake mailing list