diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-06-05 18:21:49 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-06-05 18:21:49 +0400 |
commit | 35cb2b6e2f17a518d0c940985e6e19b41fdedf19 (patch) | |
tree | 18b4c1bd7ddea5af8eb580333c6ac1e5f0e00ebb /src/json | |
parent | 1d8da7cd96a810bc6119a8f604e934235e68f9cf (diff) | |
download | rspamd-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.txt | 8 |
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}) |