Files
cuberite-2a/src/Protocol/CMakeLists.txt
T

46 lines
1.1 KiB
CMake
Raw Normal View History

project (Cuberite)
2013-12-10 21:39:20 +00:00
include_directories ("${PROJECT_SOURCE_DIR}/../")
SET (SRCS
Authenticator.cpp
ChunkDataSerializer.cpp
ForgeHandshake.cpp
MojangAPI.cpp
2017-09-02 11:46:57 -05:00
PacketID.cpp
2015-03-22 19:46:08 +01:00
Packetizer.cpp
2016-12-15 20:21:43 +01:00
Protocol_1_8.cpp
Protocol_1_9.cpp
Protocol_1_10.cpp
Protocol_1_11.cpp
2017-06-14 11:22:51 +02:00
Protocol_1_12.cpp
2015-03-22 19:46:08 +01:00
ProtocolRecognizer.cpp
)
2013-12-19 00:11:04 +00:00
SET (HDRS
Authenticator.h
ChunkDataSerializer.h
ForgeHandshake.h
MojangAPI.h
2015-03-22 19:46:08 +01:00
Packetizer.h
Protocol.h
2016-12-15 20:21:43 +01:00
Protocol_1_8.h
Protocol_1_9.h
Protocol_1_10.h
Protocol_1_11.h
2017-06-14 11:22:51 +02:00
Protocol_1_12.h
2015-03-22 19:46:08 +01:00
ProtocolRecognizer.h
)
2015-05-19 19:32:10 +01:00
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
2017-03-03 01:59:17 -08:00
set_source_files_properties(Protocol_1_9.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=switch")
set_source_files_properties(Protocol_1_8.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=switch")
2016-12-15 20:21:43 +01:00
set_source_files_properties(Protocol_1_10.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=switch")
2017-03-03 01:59:17 -08:00
set_source_files_properties(Protocol_1_11.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=switch")
2017-06-14 11:22:51 +02:00
set_source_files_properties(Protocol_1_12.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=switch")
2015-05-19 19:32:10 +01:00
endif()
2015-03-22 19:46:08 +01:00
if (NOT MSVC)
2014-07-18 13:26:43 -07:00
add_library(Protocol ${SRCS} ${HDRS})
endif()