--- CMakeLists.txt.orig 2006-11-29 14:57:06.000000000 +0100 +++ CMakeLists.txt 2009-12-27 18:39:20.319176165 +0100 @@ -146,7 +146,14 @@ #----------------------------------------------------------------------------- # Libraries. -ADD_LIBRARY(aaplus ${SRCS_LIB} ${INCS}) +ADD_LIBRARY(aaplus-static STATIC ${SRCS_LIB} ${INCS}) +SET_TARGET_PROPERTIES(aaplus-static PROPERTIES OUTPUT_NAME "aaplus") -TARGET_LINK_LIBRARIES(Test aaplus) +ADD_LIBRARY(aaplus-shared SHARED ${SRCS_LIB} ${INCS}) +SET_TARGET_PROPERTIES(aaplus-shared PROPERTIES OUTPUT_NAME "aaplus") + +install(TARGETS aaplus-shared aaplus-static + DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" ) + +TARGET_LINK_LIBRARIES(Test aaplus-static)