diff options
-rw-r--r-- | .travis.yml | 6 | ||||
-rw-r--r-- | src/rcl/CMakeLists.txt | 13 |
2 files changed, 19 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index d5c634d4f..b70870eac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,12 @@ before_script: - sudo apt-get install -qq debhelper dpkg-dev cmake libevent-dev libglib2.0-dev libgmime-2.6-dev liblua5.1-0-dev libpcre3-dev cdbs libssl-dev libjudy-dev - cmake . +script: make + +compiler: + - clang + - gcc + branches: only: - master diff --git a/src/rcl/CMakeLists.txt b/src/rcl/CMakeLists.txt new file mode 100644 index 000000000..d5a362449 --- /dev/null +++ b/src/rcl/CMakeLists.txt @@ -0,0 +1,13 @@ +# Lua support makefile +SET(RCLSRC rcl_util.c + rcl_parser.c + rcl_emitter.c) + +ADD_LIBRARY(rspamd-rcl ${LINK_TYPE} ${RCLSRC}) +SET_TARGET_PROPERTIES(rspamd-rcl PROPERTIES VERSION ${RSPAMD_VERSION}) +SET_TARGET_PROPERTIES(rspamd-rcl PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB") +IF(NO_SHARED MATCHES "OFF") + INSTALL(TARGETS rspamd-rcl + LIBRARY DESTINATION ${LIBDIR} + PUBLIC_HEADER DESTINATION ${INCLUDEDIR}) +ENDIF(NO_SHARED MATCHES "OFF")
\ No newline at end of file |