aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-12 14:59:21 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-12 14:59:21 +0000
commit57fe1769183f5e77600cc7ce6e1c417c70b2cf63 (patch)
tree8c4f96b2fafecdaaef49902d55af6fcfc9b164c9 /CMakeLists.txt
parentaa53608938ac4e25d9cdef4a222463dc338b0c85 (diff)
downloadrspamd-57fe1769183f5e77600cc7ce6e1c417c70b2cf63.tar.gz
rspamd-57fe1769183f5e77600cc7ce6e1c417c70b2cf63.zip
[Project] Add doctest unit testing library
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 71796b294..2843a2434 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -118,6 +118,7 @@ INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/"
"${CMAKE_SOURCE_DIR}/contrib/lua-lpeg"
"${CMAKE_SOURCE_DIR}/contrib/frozen/include"
"${CMAKE_SOURCE_DIR}/contrib/fmt/include"
+ "${CMAKE_SOURCE_DIR}/contrib/doctest"
"${CMAKE_BINARY_DIR}/src" #Stored in the binary dir
"${CMAKE_BINARY_DIR}/src/libcryptobox")
@@ -250,6 +251,7 @@ SET(CMAKE_C_FLAGS "${CMAKE_C_OPT_FLAGS} ${CMAKE_C_FLAGS}")
SET(CMAKE_CXX_FLAGS "${CMAKE_C_OPT_FLAGS} ${CMAKE_CXX_FLAGS}")
ADD_DEFINITIONS(-DHAVE_CONFIG_H)
+ADD_DEFINITIONS(-DDOCTEST_CONFIG_SUPER_FAST_ASSERTS)
# Check platform specific includes
CHECK_INCLUDE_FILES(sys/types.h HAVE_SYS_TYPES_H)
@@ -652,6 +654,7 @@ ADD_SUBDIRECTORY(contrib/kann)
ADD_SUBDIRECTORY(contrib/fastutf8)
ADD_SUBDIRECTORY(contrib/google-ced)
ADD_SUBDIRECTORY(contrib/fmt)
+ADD_SUBDIRECTORY(contrib/doctest)
IF (NOT WITH_LUAJIT)
ADD_SUBDIRECTORY(contrib/lua-bit)