2009-02-15 16:49:19 +01:00
|
|
|
set(LIBNAME "CppUnit")
|
|
|
|
set(LIBNAMED "${LIBNAME}d")
|
|
|
|
|
|
|
|
aux_source_directory(src SRCS)
|
|
|
|
|
|
|
|
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
|
|
|
set_target_properties( ${LIBNAME}
|
2009-08-26 14:26:22 +02:00
|
|
|
PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS}
|
2009-02-15 16:49:19 +01:00
|
|
|
VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}
|
|
|
|
SOVERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
|
|
|
|
target_link_libraries( ${LIBNAME} )
|
|
|
|
|
|
|
|
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
|
|
|
set_target_properties( ${LIBNAMED}
|
2009-08-26 14:26:22 +02:00
|
|
|
PROPERTIES COMPILE_FLAGS "${DEBUG_CXX_FLAGS}"
|
2009-02-15 16:49:19 +01:00
|
|
|
VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}
|
|
|
|
SOVERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
|
|
|
|
target_link_libraries( ${LIBNAMED} )
|