summaryrefslogtreecommitdiffstats
path: root/src/Entities/CMakeLists.txt
blob: 0416d533858b8ce4791129f02bc21b8e659abfbf (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
67
68
69
70

cmake_minimum_required (VERSION 2.6)
project (Cuberite)

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

SET (SRCS
	ArrowEntity.cpp
	Boat.cpp
	EnderCrystal.cpp
	Entity.cpp
	EntityEffect.cpp
	ExpBottleEntity.cpp
	ExpOrb.cpp
	FallingBlock.cpp
	FireChargeEntity.cpp
	FireworkEntity.cpp
	Floater.cpp
	GhastFireballEntity.cpp
	HangingEntity.cpp
	ItemFrame.cpp
	Minecart.cpp
	Painting.cpp
	Pawn.cpp
	Pickup.cpp
	Player.cpp
	ProjectileEntity.cpp
	SplashPotionEntity.cpp
	TNTEntity.cpp
	ThrownEggEntity.cpp
	ThrownEnderPearlEntity.cpp
	ThrownSnowballEntity.cpp
	WitherSkullEntity.cpp)

SET (HDRS
	ArrowEntity.h
	Boat.h
	EnderCrystal.h
	Entity.h
	EntityEffect.h
	ExpBottleEntity.h
	ExpOrb.h
	FallingBlock.h
	FireChargeEntity.h
	FireworkEntity.h
	Floater.h
	GhastFireballEntity.h
	HangingEntity.h
	ItemFrame.h
	Minecart.h
	Painting.h
	Pawn.h
	Pickup.h
	Player.h
	ProjectileEntity.h
	SplashPotionEntity.h
	TNTEntity.h
	ThrownEggEntity.h
	ThrownEnderPearlEntity.h
	ThrownSnowballEntity.h
	WitherSkullEntity.h)

if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
	set_source_files_properties(Entity.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=global-constructors")
endif()

if(NOT MSVC)
	add_library(Entities ${SRCS} ${HDRS})
	target_link_libraries(Entities WorldStorage)
endif()