aboutsummaryrefslogtreecommitdiffstats
path: root/src/json
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2012-06-05 18:21:49 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2012-06-05 18:21:49 +0400
commit35cb2b6e2f17a518d0c940985e6e19b41fdedf19 (patch)
tree18b4c1bd7ddea5af8eb580333c6ac1e5f0e00ebb /src/json
parent1d8da7cd96a810bc6119a8f604e934235e68f9cf (diff)
downloadrspamd-35cb2b6e2f17a518d0c940985e6e19b41fdedf19.tar.gz
rspamd-35cb2b6e2f17a518d0c940985e6e19b41fdedf19.zip
* Split rspamd build to several independent libraries to reduce overhead.
Diffstat (limited to 'src/json')
-rw-r--r--src/json/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/json/CMakeLists.txt b/src/json/CMakeLists.txt
index 1f61d55a3..ad8059269 100644
--- a/src/json/CMakeLists.txt
+++ b/src/json/CMakeLists.txt
@@ -6,5 +6,9 @@ SET(JSONSRC dump.c
utf.c
value.c)
-ADD_LIBRARY(rspamd_json STATIC ${JSONSRC})
-SET_TARGET_PROPERTIES(rspamd_json PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB")
+ADD_LIBRARY(rspamd-json SHARED ${JSONSRC})
+SET_TARGET_PROPERTIES(rspamd-json PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB")
+INSTALL(TARGETS rspamd-json
+ LIBRARY DESTINATION ${LIBDIR}
+ PUBLIC_HEADER DESTINATION ${INCLUDEDIR}
+ ARCHIVE DESTINATION ${LIBDIR})