diff options
Diffstat (limited to 'src/client/CMakeLists.txt')
-rw-r--r-- | src/client/CMakeLists.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt index 1d48a202f..90936f037 100644 --- a/src/client/CMakeLists.txt +++ b/src/client/CMakeLists.txt @@ -1,3 +1,26 @@ +# Librspamdclient +SET(LIBRSPAMDCLIENTSRC rspamdclient.c) + +ADD_LIBRARY(rspamdclient SHARED ${LIBRSPAMDCLIENTSRC}) +IF(CMAKE_COMPILER_IS_GNUCC) + SET_TARGET_PROPERTIES(rspamdclient PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing") +ENDIF(CMAKE_COMPILER_IS_GNUCC) + +TARGET_LINK_LIBRARIES(rspamdclient rspamd-util) +TARGET_LINK_LIBRARIES(rspamdclient ${RSPAMD_REQUIRED_LIBRARIES}) + +IF(GLIB_COMPAT) + INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/contrib/lgpl") + TARGET_LINK_LIBRARIES(rspamdclient glibadditions) +ENDIF(GLIB_COMPAT) + +IF(NO_SHARED MATCHES "OFF") + INSTALL(TARGETS rspamdclient LIBRARY PUBLIC_HEADER + LIBRARY DESTINATION ${LIBDIR} + PUBLIC_HEADER DESTINATION ${INCLUDEDIR} + ARCHIVE DESTINATION ${LIBDIR}) +ENDIF(NO_SHARED MATCHES "OFF") + # rspamc SET(RSPAMCSRC rspamc.c) |