add_library (libname-shared SHARED ${SOURCES})
add_library (libname-static STATIC ${SOURCES})The target names need to be different. On Nov 25, 2008, at 10:02 AM, Micha Renner wrote:
Me second question is: I create libraries in the following way: ADD_LIBRARY(libname SHARED ${SOURCES})I want to build shared (.so) and dynamic (.a) libraries as well (just like automake's default behaviour) but I don't howto create both at the same time. ADD_LIBRARY(libname SHARED ${SOURCES}) ADD_LIBRARY(libname STATIC ${SOURCES})
_________________________________________________________ Mike Jackson [EMAIL PROTECTED] BlueQuartz Software www.bluequartz.net Principal Software Engineer Dayton, Ohio _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
