summaryrefslogtreecommitdiffstats
path: root/src/Items/CMakeLists.txt
blob: eacc1e53f43f0c1ae0da1ae009c95403a81a2a64 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
project (Cuberite)

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

SET (SRCS
	ItemHandler.cpp
)

SET (HDRS
	ItemArmor.h
	ItemBed.h
	ItemBigFlower.h
	ItemBoat.h
	ItemBottle.h
	ItemBow.h
	ItemBrewingStand.h
	ItemBucket.h
	ItemCake.h
	ItemCauldron.h
	ItemChest.h
	ItemCloth.h
	ItemComparator.h
	ItemDoor.h
	ItemDye.h
	ItemEmptyMap.h
	ItemFishingRod.h
	ItemFlowerPot.h
	ItemFood.h
	ItemGoldenApple.h
	ItemHandler.h
	ItemHoe.h
	ItemItemFrame.h
	ItemLeaves.h
	ItemLighter.h
	ItemLilypad.h
	ItemMap.h
	ItemMilk.h
	ItemMinecart.h
	ItemMobHead.h
	ItemNetherWart.h
	ItemPainting.h
	ItemPickaxe.h
	ItemPotion.h
	ItemPumpkin.h
	ItemRedstoneDust.h
	ItemRedstoneRepeater.h
	ItemSapling.h
	ItemSeeds.h
	ItemShears.h
	ItemShovel.h
	ItemSign.h
	ItemSlab.h
	ItemSpawnEgg.h
	ItemString.h
	ItemSugarcane.h
	ItemSword.h
	ItemThrowable.h
)

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

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