2019-01-03 16:48:45 +00:00
|
|
|
# Copyright (c) 2017 - 2019 LiteSpeed Technologies Inc. See LICENSE.
|
2017-09-22 21:00:03 +00:00
|
|
|
|
2017-09-26 15:26:05 +00:00
|
|
|
INCLUDE(CheckSymbolExists)
|
|
|
|
|
|
|
|
CHECK_SYMBOL_EXISTS(
|
|
|
|
IP_MTU_DISCOVER
|
|
|
|
"netinet/in.h"
|
|
|
|
HAVE_IP_MTU_DISCOVER
|
|
|
|
)
|
|
|
|
|
|
|
|
CHECK_SYMBOL_EXISTS(
|
|
|
|
IP_DONTFRAG
|
|
|
|
"netinet/in.h"
|
|
|
|
HAVE_IP_DONTFRAG
|
|
|
|
)
|
|
|
|
|
2018-05-18 13:18:06 +00:00
|
|
|
INCLUDE(CheckIncludeFiles)
|
|
|
|
|
|
|
|
CHECK_INCLUDE_FILES(regex.h HAVE_REGEX)
|
2017-09-26 15:26:05 +00:00
|
|
|
|
|
|
|
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/test_config.h.in ${CMAKE_CURRENT_SOURCE_DIR}/test_config.h)
|
|
|
|
|
2017-09-22 21:00:03 +00:00
|
|
|
|
2018-10-16 13:03:33 +00:00
|
|
|
IF(NOT (CMAKE_C_FLAGS MATCHES "-DNDEBUG"))
|
2018-02-26 21:01:16 +00:00
|
|
|
# Our test framework relies on assertions, only compile if assertions are
|
|
|
|
# enabled.
|
|
|
|
#
|
|
|
|
add_subdirectory(unittests)
|
|
|
|
enable_testing()
|
|
|
|
ENDIF()
|