2009-02-17 21:02:37 +01:00
|
|
|
set(LIBNAME "mod_poco")
|
|
|
|
set(LIBNAMED "${LIBNAME}d")
|
|
|
|
|
2009-02-21 10:58:44 +01:00
|
|
|
include_directories( include ${APACHE_INCLUDE_DIR} ${APRUTIL_INCLUDE_DIR} )
|
2009-02-17 21:02:37 +01:00
|
|
|
|
|
|
|
aux_source_directory(src SRCS)
|
|
|
|
|
2009-02-21 10:58:44 +01:00
|
|
|
add_library( ${LIBNAME} SHARED ${SRCS} )
|
2009-02-17 21:02:37 +01:00
|
|
|
set_target_properties( ${LIBNAME}
|
2009-08-26 14:26:22 +02:00
|
|
|
PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS}
|
2009-02-17 21:02:37 +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} )
|
|
|
|
|
2009-02-21 10:58:44 +01:00
|
|
|
add_library( ${LIBNAMED} SHARED ${SRCS} )
|
2009-02-17 21:02:37 +01:00
|
|
|
set_target_properties( ${LIBNAMED}
|
2009-08-26 14:26:22 +02:00
|
|
|
PROPERTIES COMPILE_FLAGS "${DEBUG_CXX_FLAGS}"
|
2009-02-17 21:02:37 +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} )
|
2009-02-21 10:58:44 +01:00
|
|
|
|
2011-01-22 12:46:03 +01:00
|
|
|
if (ENABLE_TESTS)
|
|
|
|
add_subdirectory(samples)
|
|
|
|
endif ()
|