blob: 220449fa38e4d4ceb9d3d7890e4e4237b45290c9 (
plain) (
tree)
|
|
project (Cuberite)
include_directories ("${PROJECT_SOURCE_DIR}/../")
SET (SRCS
Authenticator.cpp
ChunkDataSerializer.cpp
MojangAPI.cpp
Packetizer.cpp
Protocol18x.cpp
Protocol19x.cpp
ProtocolRecognizer.cpp
)
SET (HDRS
Authenticator.h
ChunkDataSerializer.h
MojangAPI.h
Packetizer.h
Protocol.h
Protocol18x.h
Protocol19x.h
ProtocolRecognizer.h
)
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set_source_files_properties(Protocol19x.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=old-style-cast -Wno-error=sign-conversion -Wno-error=conversion -Wno-error=switch-enum -Wno-error=switch")
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")
endif()
if (NOT MSVC)
add_library(Protocol ${SRCS} ${HDRS})
endif()
|