2014-08-22 17:10:24 +02:00
|
|
|
# Sources
|
|
|
|
file(GLOB SRCS_G "src/*.cpp")
|
2020-02-14 11:07:32 +01:00
|
|
|
POCO_SOURCES_AUTO(SRCS ${SRCS_G})
|
2012-06-26 14:37:02 +02:00
|
|
|
|
2014-08-22 17:10:24 +02:00
|
|
|
# Headers
|
2020-02-14 11:07:32 +01:00
|
|
|
file(GLOB_RECURSE HDRS_G "include/*.h")
|
|
|
|
POCO_HEADERS_AUTO(SRCS ${HDRS_G})
|
2014-08-22 17:10:24 +02:00
|
|
|
|
2018-06-03 18:17:50 +02:00
|
|
|
add_library(mod_poco SHARED ${SRCS})
|
|
|
|
set_target_properties(mod_poco
|
2020-02-14 11:07:32 +01:00
|
|
|
PROPERTIES
|
|
|
|
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION}
|
|
|
|
DEFINE_SYMBOL ApacheHandlers_EXPORTS)
|
2018-06-03 18:17:50 +02:00
|
|
|
target_include_directories(mod_poco
|
2020-02-14 11:07:32 +01:00
|
|
|
PUBLIC
|
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
|
|
|
$<INSTALL_INTERFACE:include>
|
2018-10-10 13:43:34 +02:00
|
|
|
PRIVATE
|
|
|
|
${APACHE2_INCLUDE_DIRS}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src
|
2020-02-14 11:07:32 +01:00
|
|
|
)
|
2018-10-10 13:43:34 +02:00
|
|
|
target_link_libraries(mod_poco PUBLIC Poco::Util Poco::Net Apache::Apr Apache::Aprutil)
|
2012-06-26 14:37:02 +02:00
|
|
|
|
2020-02-14 11:07:32 +01:00
|
|
|
if(ENABLE_TESTS)
|
|
|
|
add_subdirectory(samples)
|
|
|
|
endif()
|