TARGET_LINK_LIBRARIES(rspamd-test stemmer)
IF(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
- FILE(COPY "${CMAKE_CURRENT_SOURCE_DIR}/lua"
- DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
-
# Also add dependencies for convenience
FILE(GLOB LUA_TESTS "${CMAKE_CURRENT_SOURCE_DIR}/lua/*")
FOREACH(_LF IN LISTS LUA_TESTS)
GET_FILENAME_COMPONENT(_NM "${_LF}" NAME)
SET(_DS "${CMAKE_CURRENT_BINARY_DIR}/lua/${_NM}")
- MESSAGE(STATUS "${_LF} -> ${_DS}")
ADD_CUSTOM_TARGET("${_NM}" COMMAND
${CMAKE_COMMAND} -E copy_if_different ${_LF} ${_DS}
SOURCES "${_LF}"