2013-12-10 16:39:20 -05:00
|
|
|
|
|
|
|
cmake_minimum_required (VERSION 2.6)
|
2016-01-01 15:05:09 -05:00
|
|
|
project (Cuberite)
|
2013-12-10 16:39:20 -05:00
|
|
|
|
|
|
|
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
|
|
|
|
2014-07-18 03:03:19 -04:00
|
|
|
SET (SRCS
|
|
|
|
Authenticator.cpp
|
|
|
|
ChunkDataSerializer.cpp
|
2014-07-29 11:45:55 -04:00
|
|
|
MojangAPI.cpp
|
2015-03-22 14:46:08 -04:00
|
|
|
Packetizer.cpp
|
2014-07-18 03:03:19 -04:00
|
|
|
Protocol17x.cpp
|
2014-09-03 18:29:36 -04:00
|
|
|
Protocol18x.cpp
|
2015-03-22 14:46:08 -04:00
|
|
|
ProtocolRecognizer.cpp
|
|
|
|
)
|
2013-12-18 19:11:04 -05:00
|
|
|
|
2014-07-18 03:03:19 -04:00
|
|
|
SET (HDRS
|
|
|
|
Authenticator.h
|
|
|
|
ChunkDataSerializer.h
|
2014-07-29 11:45:55 -04:00
|
|
|
MojangAPI.h
|
2015-03-22 14:46:08 -04:00
|
|
|
Packetizer.h
|
2014-07-18 03:03:19 -04:00
|
|
|
Protocol.h
|
|
|
|
Protocol17x.h
|
2014-09-03 18:29:36 -04:00
|
|
|
Protocol18x.h
|
2015-03-22 14:46:08 -04:00
|
|
|
ProtocolRecognizer.h
|
|
|
|
)
|
2014-07-18 03:03:19 -04:00
|
|
|
|
2015-05-19 14:32:10 -04:00
|
|
|
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
2015-07-09 13:15:37 -04:00
|
|
|
set_source_files_properties(Protocol18x.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=old-style-cast -Wno-error=sign-conversion -Wno-error=conversion -Wno-error=switch-enum -Wno-error=switch")
|
2015-07-29 11:04:03 -04:00
|
|
|
set_source_files_properties(Protocol17x.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=switch-enum ")
|
2015-05-19 14:32:10 -04:00
|
|
|
endif()
|
|
|
|
|
2015-03-22 14:46:08 -04:00
|
|
|
if (NOT MSVC)
|
2014-07-18 16:26:43 -04:00
|
|
|
add_library(Protocol ${SRCS} ${HDRS})
|
|
|
|
endif()
|