| 12345678910111213141516171819202122232425262728293031323334353637383940 | 
							- get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_DIR}/../3rdparty/civetweb/" ABSOLUTE)
 
- macro(set_and_check _var _file)
 
-   set(${_var} "${_file}")
 
-   if(NOT EXISTS "${_file}")
 
-     message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
 
-   endif()
 
- endmacro()
 
- set_and_check(CIVETWEB_INCLUDE_DIR ${_IMPORT_PREFIX}/include)
 
- add_library(civetweb OBJECT
 
-   ${_IMPORT_PREFIX}/include/CivetServer.h
 
-   ${_IMPORT_PREFIX}/include/civetweb.h
 
-   ${_IMPORT_PREFIX}/src/CivetServer.cpp
 
-   ${_IMPORT_PREFIX}/src/civetweb.c
 
-   ${_IMPORT_PREFIX}/src/handle_form.inl
 
-   ${_IMPORT_PREFIX}/src/md5.inl
 
- )
 
- target_compile_definitions(civetweb PRIVATE
 
-   CIVETWEB_API=
 
-   USE_IPV6
 
-   NDEBUG
 
-   NO_CGI
 
-   NO_CACHING
 
-   NO_SSL
 
-   NO_FILES
 
- )
 
- target_include_directories(civetweb PUBLIC ${CIVETWEB_INCLUDE_DIR})
 
- if(BUILD_SHARED_LIBS)
 
-   set_target_properties(civetweb PROPERTIES
 
-     POSITION_INDEPENDENT_CODE ON
 
-     C_VISIBILITY_PRESET hidden
 
-     CXX_VISIBILITY_PRESET hidden
 
-     VISIBILITY_INLINES_HIDDEN ON
 
-   )
 
- endif()
 
 
  |