summaryrefslogblamecommitdiffstats
path: root/src/Protocol/CMakeLists.txt
blob: 13afb76f41222d36962400e2ba58812040c7946f (plain) (tree)
1
2
3
4
5
6
7
8
9
                  


                                                 


                               
                     
                      
                       
                       
                        

                              
 


                             
                   
                    
                  
                     
                     
                      

                            
 
                                               


                                                                                                                         

       
             

                                             
project (Cuberite)

include_directories ("${PROJECT_SOURCE_DIR}/../")

SET (SRCS
	Authenticator.cpp
	ChunkDataSerializer.cpp
	MojangAPI.cpp
	Packetizer.cpp
	Protocol18x.cpp
	Protocol19x.cpp
	Protocol110x.cpp
	ProtocolRecognizer.cpp
)

SET (HDRS
	Authenticator.h
	ChunkDataSerializer.h
	MojangAPI.h
	Packetizer.h
	Protocol.h
	Protocol18x.h
	Protocol19x.h
	Protocol110x.h
	ProtocolRecognizer.h
)

if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
	set_source_files_properties(Protocol19x.cpp  PROPERTIES COMPILE_FLAGS "-Wno-error=switch-enum -Wno-error=switch")
	set_source_files_properties(Protocol18x.cpp  PROPERTIES COMPILE_FLAGS "-Wno-error=switch-enum -Wno-error=switch")
	set_source_files_properties(Protocol110x.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=switch")
endif()

if (NOT MSVC)
	add_library(Protocol ${SRCS} ${HDRS})
endif()