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/lua/CMakeLists.txt | |
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/lua/CMakeLists.txt')
-rw-r--r-- | src/lua/CMakeLists.txt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lua/CMakeLists.txt b/src/lua/CMakeLists.txt index e46b5c885..bdba01c27 100644 --- a/src/lua/CMakeLists.txt +++ b/src/lua/CMakeLists.txt @@ -12,7 +12,10 @@ SET(LUASRC lua_common.c lua_redis.c lua_upstream.c) -ADD_LIBRARY(rspamd_lua STATIC ${LUASRC}) -TARGET_LINK_LIBRARIES(rspamd_lua ${LUALIB}) -TARGET_LINK_LIBRARIES(rspamd_lua hiredis) -SET_TARGET_PROPERTIES(rspamd_lua PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB") +ADD_LIBRARY(rspamd-lua SHARED ${LUASRC}) +TARGET_LINK_LIBRARIES(rspamd-lua ${LUALIB}) +SET_TARGET_PROPERTIES(rspamd-lua PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB") +INSTALL(TARGETS rspamd-lua + LIBRARY DESTINATION ${LIBDIR} + PUBLIC_HEADER DESTINATION ${INCLUDEDIR} + ARCHIVE DESTINATION ${LIBDIR}) |