1
0
cuberite-2a/src/Generating/CMakeLists.txt
peterbell10 307e7aaff5 Fix switch warnings (#4013)
* Fix switch warnings
  * Fix a variety of -Wswitch and -Wswitch-enum warnings
  * Remove unneeded -Wno-error flags

* Reorganise some eMonsterType switches
  * Alpha sort eMonsterType cases in WriteMobMetadata
    and in cNBTChunkSerializer::AddMonsterEntity
  * List all mob types in protocol 1.12 and NBTChunkSerializer

* cStructGenTrees::GetNumTrees: remove switch default

* cWSSAnvil::LoadOldMinecartFromNBT: Log unhandled minecart type
2017-09-14 09:48:57 +01:00

81 lines
1.4 KiB
CMake

project (Cuberite)
include_directories ("${PROJECT_SOURCE_DIR}/../")
SET (SRCS
BioGen.cpp
Caves.cpp
ChunkDesc.cpp
ChunkGenerator.cpp
CompoGen.cpp
CompoGenBiomal.cpp
ComposableGenerator.cpp
DistortedHeightmap.cpp
DungeonRoomsFinisher.cpp
EndGen.cpp
FinishGen.cpp
GridStructGen.cpp
HeiGen.cpp
MineShafts.cpp
Noise3DGenerator.cpp
PieceGeneratorBFSTree.cpp
PiecePool.cpp
PieceStructuresGen.cpp
Prefab.cpp
PrefabPiecePool.cpp
PrefabStructure.cpp
Ravines.cpp
RoughRavines.cpp
StructGen.cpp
Trees.cpp
TwoHeights.cpp
VerticalLimit.cpp
VerticalStrategy.cpp
VillageGen.cpp
)
SET (HDRS
BioGen.h
Caves.h
ChunkDesc.h
ChunkGenerator.h
CompoGen.h
CompoGenBiomal.h
ComposableGenerator.h
CompositedHeiGen.h
DistortedHeightmap.h
DungeonRoomsFinisher.h
EndGen.h
FinishGen.h
GridStructGen.h
HeiGen.h
IntGen.h
MineShafts.h
Noise3DGenerator.h
PieceGeneratorBFSTree.h
PiecePool.h
PieceStructuresGen.h
Prefab.h
PrefabPiecePool.h
PrefabStructure.h
ProtIntGen.h
Ravines.h
RoughRavines.h
ShapeGen.cpp
StructGen.h
Trees.h
TwoHeights.h
VerticalLimit.h
VerticalStrategy.h
VillageGen.h
)
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set_source_files_properties(CompoGenBiomal.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=global-constructors")
endif()
if(NOT MSVC)
add_library(Generating ${SRCS} ${HDRS})
target_link_libraries(Generating OSSupport Blocks Bindings)
endif()