CMakeLists.txt revision fb3e20e0
17d09751dSDmitri Tikhonov# Copyright (c) 2017 - 2020 LiteSpeed Technologies Inc. See LICENSE. 25392f7a3SLiteSpeed TechINCLUDE(CheckFunctionExists) 35392f7a3SLiteSpeed TechCHECK_FUNCTION_EXISTS(sendmmsg HAVE_SENDMMSG) 45392f7a3SLiteSpeed TechCHECK_FUNCTION_EXISTS(recvmmsg HAVE_RECVMMSG) 55392f7a3SLiteSpeed TechCHECK_FUNCTION_EXISTS(open_memstream HAVE_OPEN_MEMSTREAM) 65392f7a3SLiteSpeed Tech 750aadb33SDmitri Tikhonov 8e0197994SDmitri TikhonovINCLUDE(CheckSymbolExists) 9e0197994SDmitri Tikhonov 10e0197994SDmitri TikhonovCHECK_SYMBOL_EXISTS( 11e0197994SDmitri Tikhonov IP_MTU_DISCOVER 12e0197994SDmitri Tikhonov "netinet/in.h" 13e0197994SDmitri Tikhonov HAVE_IP_MTU_DISCOVER 14e0197994SDmitri Tikhonov) 15e0197994SDmitri Tikhonov 16e0197994SDmitri TikhonovCHECK_SYMBOL_EXISTS( 17e0197994SDmitri Tikhonov IP_DONTFRAG 18e0197994SDmitri Tikhonov "netinet/in.h" 19e0197994SDmitri Tikhonov HAVE_IP_DONTFRAG 20e0197994SDmitri Tikhonov) 21e0197994SDmitri Tikhonov 225dc94445SDmitri TikhonovINCLUDE(CheckIncludeFiles) 235dc94445SDmitri Tikhonov 24fb3e20e0SDmitri TikhonovIF (MSVC AND PCRE_LIB) 25fb3e20e0SDmitri TikhonovFIND_PATH(EVENT_INCLUDE_DIR NAMES pcreposix.h) 26fb3e20e0SDmitri TikhonovIF (EVENT_INCLUDE_DIR) 27fb3e20e0SDmitri Tikhonov MESSAGE(STATUS "found pcreposix.h") 28fb3e20e0SDmitri Tikhonov SET(HAVE_REGEX 1) 29fb3e20e0SDmitri TikhonovELSE() 30fb3e20e0SDmitri Tikhonov MESSAGE(FATAL_ERROR "event2/event.h was not found") 31fb3e20e0SDmitri TikhonovENDIF() 32fb3e20e0SDmitri TikhonovELSE() 335dc94445SDmitri TikhonovCHECK_INCLUDE_FILES(regex.h HAVE_REGEX) 34fb3e20e0SDmitri TikhonovENDIF() 35e0197994SDmitri Tikhonov 36e0197994SDmitri TikhonovCONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/test_config.h.in ${CMAKE_CURRENT_SOURCE_DIR}/test_config.h) 37