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} ) # generate the
dll loadable when running version of the same lib, same sources
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.
Joel Lamotte
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake