2013-12-10 18:41:43 +00:00
|
|
|
|
|
|
|
cmake_minimum_required (VERSION 2.6)
|
2016-01-01 20:05:09 +00:00
|
|
|
project (Cuberite)
|
2013-12-10 18:41:43 +00:00
|
|
|
|
|
|
|
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
|
|
|
|
2014-07-18 07:46:39 +00:00
|
|
|
SET (SRCS
|
|
|
|
EnvelopeParser.cpp
|
|
|
|
HTTPFormParser.cpp
|
|
|
|
HTTPMessage.cpp
|
2016-02-20 10:50:52 +00:00
|
|
|
HTTPMessageParser.cpp
|
2014-07-18 07:46:39 +00:00
|
|
|
HTTPServer.cpp
|
2015-12-25 18:42:50 +00:00
|
|
|
HTTPServerConnection.cpp
|
2014-07-18 07:46:39 +00:00
|
|
|
MultipartParser.cpp
|
|
|
|
NameValueParser.cpp
|
2015-12-25 18:42:50 +00:00
|
|
|
SslHTTPServerConnection.cpp
|
2016-01-01 15:42:22 +00:00
|
|
|
TransferEncodingParser.cpp
|
2015-12-25 17:50:25 +00:00
|
|
|
UrlParser.cpp
|
|
|
|
)
|
2013-12-19 00:16:44 +00:00
|
|
|
|
2014-07-18 07:46:39 +00:00
|
|
|
SET (HDRS
|
|
|
|
EnvelopeParser.h
|
|
|
|
HTTPFormParser.h
|
|
|
|
HTTPMessage.h
|
2016-02-20 10:50:52 +00:00
|
|
|
HTTPMessageParser.h
|
2014-07-18 07:46:39 +00:00
|
|
|
HTTPServer.h
|
2015-12-25 18:42:50 +00:00
|
|
|
HTTPServerConnection.h
|
2014-07-18 07:46:39 +00:00
|
|
|
MultipartParser.h
|
|
|
|
NameValueParser.h
|
2015-12-25 18:42:50 +00:00
|
|
|
SslHTTPServerConnection.h
|
2016-01-01 15:42:22 +00:00
|
|
|
TransferEncodingParser.h
|
2015-12-25 17:50:25 +00:00
|
|
|
UrlParser.h
|
|
|
|
)
|
2014-07-18 07:46:39 +00:00
|
|
|
|
2015-05-19 18:32:10 +00:00
|
|
|
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
2015-07-29 15:04:03 +00:00
|
|
|
set_source_files_properties(HTTPServer.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=global-constructors ")
|
2015-12-25 18:42:50 +00:00
|
|
|
set_source_files_properties(HTTPServerConnection.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=switch-enum")
|
2015-07-20 15:17:45 +00:00
|
|
|
set_source_files_properties(HTTPMessage.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=tautological-compare")
|
2015-05-19 18:32:10 +00:00
|
|
|
endif()
|
|
|
|
|
2014-07-18 20:26:43 +00:00
|
|
|
if(NOT MSVC)
|
|
|
|
add_library(HTTPServer ${SRCS} ${HDRS})
|
|
|
|
endif()
|