Re: [CMake] Static and DLL builds in single solution

2012-12-10 Thread Bill Hoffman
On 12/8/2012 4:23 PM, Matt Campbell wrote: That’s what I was thinking as well, however, what wasn’t clear to me is how to associate the DLL version with the DLL configuration and the static lib with the static configuration type? Make it will just work, I’ll have to try it I suppose. http://www.

Re: [CMake] Static and DLL builds in single solution

2012-12-08 Thread Matt Campbell
] Sent: Saturday, December 08, 2012 10:35 AM To: Matt Campbell Cc: cmake@cmake.org Subject: Re: [CMake] Static and DLL builds in single solution For example: add_library( mylibStatic STATIC ${MYLIB_ALL_SOURCES} ) # generate the static version of the lib add_library( mylibDLL SHARED

Re: [CMake] Static and DLL builds in single solution

2012-12-08 Thread Klaim - Joël Lamotte
For example: add_library( mylibStatic STATIC ${MYLIB_ALL_SOURCES} ) # generate the static version of the lib add_library( mylibDLL SHARED ${MYLIB_ALL_SOURCES} ) # generate the dll loaded at startup version of the same lib, same sources add_library( mylibExtension MODULE ${MYLIB_ALL_SOURCES} ) # g

[CMake] Static and DLL builds in single solution

2012-12-07 Thread Matt Campbell
Hi, I am quite new to CMake so forgive me if this has already been answered. My current build has a solution with several configurations, (debug, debugDLL, release, releaseDLL, etc.). I was able to add the custom configuration types to the generated VS solution but I am not sure how to tell CMa