<br><div>For example:</div><div><br></div><div>add_library( mylibStatic STATIC ${MYLIB_ALL_SOURCES} ) # generate the static version of the lib<br>add_library( mylibDLL SHARED ${MYLIB_ALL_SOURCES} ) # generate the dll loaded at startup version of the same lib, same sources</div>
<div>add_library( mylibExtension MODULE ${MYLIB_ALL_SOURCES} ) # generate the dll loadable when running version of the same lib, same sources<br></div><div><br></div><div>This works well if you keem the names different. Anyway, adding some CMake options to let the user choose what is generated could be good too.</div>
<div><br></div><div>Joel Lamotte</div><div><br></div>