[cmake-developers] Building executables as libraries

Brad King brad.king at kitware.com
Wed Mar 26 08:44:17 EDT 2014


On 03/21/2014 11:44 AM, Stephen Kelly wrote:
> Should we try to add first-class support to CMake for building shared 
> libraries from CMake code like
> 
>  add_executable(...)
> 
> somehow? There would probably need to be some properties to control it, but 
> I wanted to raise the idea.

Would this be as simple as a platform information file variable that
tells add_executable() to act like add_library() internally?

-Brad




More information about the cmake-developers mailing list