aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-02 16:16:51 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-02 16:16:51 +0300
commite7032003419b8575e211fb9bb4740c1d37736f51 (patch)
treea44830a57a3a2f1ec5347227fd44d60faa419a56 /lib
parent295619fdc102e5528a5370a0dcd58bef9c7dc371 (diff)
downloadrspamd-e7032003419b8575e211fb9bb4740c1d37736f51.tar.gz
rspamd-e7032003419b8575e211fb9bb4740c1d37736f51.zip
Update build and install system.
Diffstat (limited to 'lib')
-rw-r--r--lib/CMakeLists.txt16
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index f625b2833..5b30f041b 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -4,4 +4,18 @@ SET(LIBRSPAMDSRC librspamdclient.c ../src/util.c ../src/upstream.c ../src/me
ADD_LIBRARY(rspamdclient SHARED ${LIBRSPAMDSRC})
ADD_LIBRARY(rspamdclient_static STATIC ${LIBRSPAMDSRC})
SET_TARGET_PROPERTIES(rspamdclient PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing -I../src/")
-SET_TARGET_PROPERTIES(rspamdclient_static PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing -I../src/") \ No newline at end of file
+SET_TARGET_PROPERTIES(rspamdclient PROPERTIES PUBLIC_HEADER "librspamdclient.h")
+SET_TARGET_PROPERTIES(rspamdclient_static PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing -I../src/")
+
+TARGET_LINK_LIBRARIES(rspamdclient ${CMAKE_REQUIRED_LIBRARIES})
+TARGET_LINK_LIBRARIES(rspamdclient ${GLIB2_LIBRARIES})
+TARGET_LINK_LIBRARIES(rspamdclient_static ${CMAKE_REQUIRED_LIBRARIES})
+TARGET_LINK_LIBRARIES(rspamdclient_static ${GLIB2_LIBRARIES})
+
+SET_TARGET_PROPERTIES(rspamdclient PROPERTIES VERSION ${RSPAMD_VERSION})
+SET_TARGET_PROPERTIES(rspamdclient_static PROPERTIES VERSION ${RSPAMD_VERSION})
+
+INSTALL(TARGETS rspamdclient rspamdclient_static LIBRARY PUBLIC_HEADER
+ LIBRARY DESTINATION lib
+ PUBLIC_HEADER DESTINATION include
+ ARCHIVE DESTINATION lib)