summaryrefslogtreecommitdiffstats
path: root/src/rcl/CMakeLists.txt
blob: 134db7269e371e6611c57a3634bad484193bb09e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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(HAVE_FETCH_H)
	TARGET_LINK_LIBRARIES(rspamd-rcl fetch)
ELSE(HAVE_FETCH_H)
	IF(CURL_FOUND)
		TARGET_LINK_LIBRARIES(rspamd-rcl ${CURL_LIBRARIES})
	ENDIF(CURL_FOUND)
ENDIF(HAVE_FETCH_H)
IF(NO_SHARED MATCHES "OFF")
	INSTALL(TARGETS rspamd-rcl 
    	LIBRARY DESTINATION ${LIBDIR} 
    	PUBLIC_HEADER DESTINATION ${INCLUDEDIR})
ENDIF(NO_SHARED MATCHES "OFF")