diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-05-06 19:18:40 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-05-06 19:18:40 +0400 |
commit | 683b90f4c6c744557f7429ce6ff77c0f7d2175e1 (patch) | |
tree | 6e5f5cfdb0070cc7387d4045e955c6226d9f225d /test | |
parent | 56586078f92c4cf71fad46e1f4888a49749a6313 (diff) | |
download | rspamd-683b90f4c6c744557f7429ce6ff77c0f7d2175e1.tar.gz rspamd-683b90f4c6c744557f7429ce6ff77c0f7d2175e1.zip |
* Major cleanup of cmake build system
* Add initial version of statshow utility for statfiles debugging
* Add debugging for statistics
* Remove unused utilities
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 000000000..4255e7bf0 --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1,41 @@ +SET(TESTSRC rspamd_expression_test.c + rspamd_memcached_test.c + rspamd_mem_pool_test.c + rspamd_statfile_test.c + rspamd_fuzzy_test.c + rspamd_test_suite.c + rspamd_url_test.c + rspamd_dns_test.c) + +SET(TESTDEPENDS ../src/mem_pool.c + ../src/hash.c + ../src/url.c + ../src/trie.c + ../src/util.c + ../src/radix.c + ../src/fuzzy.c + ../src/map.c + ../src/logger.c + ../src/memcached.c + ../src/message.c + ../src/html.c + ../src/expressions.c + ../src/statfile.c + ../src/events.c + ../src/upstream.c + ../src/dns.c) + +ADD_EXECUTABLE(rspamd-test EXCLUDE_FROM_ALL ${TESTDEPENDS} ${CONTRIBSRC} ${TESTSRC}) +SET_TARGET_PROPERTIES(rspamd-test PROPERTIES LINKER_LANGUAGE C) +SET_TARGET_PROPERTIES(rspamd-test PROPERTIES COMPILE_FLAGS "-DRSPAMD_TEST") +TARGET_LINK_LIBRARIES(rspamd-test event) +TARGET_LINK_LIBRARIES(rspamd-test ${GLIB2_LIBRARIES}) +TARGET_LINK_LIBRARIES(rspamd-test ${CMAKE_REQUIRED_LIBRARIES}) +IF(GMIME2_FOUND) + TARGET_LINK_LIBRARIES(rspamd-test ${GMIME2_LIBRARIES}) +ELSE(GMIME2_FOUND) + TARGET_LINK_LIBRARIES(rspamd-test ${GMIME24_LIBRARIES}) +ENDIF(GMIME2_FOUND) +IF(ENABLE_STATIC MATCHES "ON") + TARGET_LINK_LIBRARIES(rspamd-test ${PCRE_LIBRARIES}) +ENDIF(ENABLE_STATIC MATCHES "ON")
\ No newline at end of file |