2016-01-01 15:05:09 -05:00
|
|
|
project (Cuberite)
|
2013-12-10 16:39:20 -05:00
|
|
|
|
|
|
|
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
|
|
|
|
2014-07-18 02:57:35 -04:00
|
|
|
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
|
2017-08-21 04:46:41 -04:00
|
|
|
LeashKnot.cpp
|
2014-07-18 02:57:35 -04:00
|
|
|
Minecart.cpp
|
|
|
|
Painting.cpp
|
|
|
|
Pawn.cpp
|
|
|
|
Pickup.cpp
|
|
|
|
Player.cpp
|
|
|
|
ProjectileEntity.cpp
|
|
|
|
SplashPotionEntity.cpp
|
|
|
|
TNTEntity.cpp
|
|
|
|
ThrownEggEntity.cpp
|
|
|
|
ThrownEnderPearlEntity.cpp
|
|
|
|
ThrownSnowballEntity.cpp
|
|
|
|
WitherSkullEntity.cpp)
|
2013-12-10 18:09:16 -05:00
|
|
|
|
2014-07-18 02:57:35 -04:00
|
|
|
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
|
2017-08-21 04:46:41 -04:00
|
|
|
LeashKnot.h
|
2014-07-18 02:57:35 -04:00
|
|
|
Minecart.h
|
|
|
|
Painting.h
|
|
|
|
Pawn.h
|
|
|
|
Pickup.h
|
|
|
|
Player.h
|
|
|
|
ProjectileEntity.h
|
|
|
|
SplashPotionEntity.h
|
|
|
|
TNTEntity.h
|
|
|
|
ThrownEggEntity.h
|
|
|
|
ThrownEnderPearlEntity.h
|
|
|
|
ThrownSnowballEntity.h
|
|
|
|
WitherSkullEntity.h)
|
|
|
|
|
2015-05-19 14:32:10 -04:00
|
|
|
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
2016-01-06 10:20:12 -05:00
|
|
|
set_source_files_properties(Entity.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=global-constructors")
|
2015-05-19 14:32:10 -04:00
|
|
|
endif()
|
|
|
|
|
2014-07-18 16:26:43 -04:00
|
|
|
if(NOT MSVC)
|
|
|
|
add_library(Entities ${SRCS} ${HDRS})
|
|
|
|
target_link_libraries(Entities WorldStorage)
|
|
|
|
endif()
|