ee84197014
Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
64 lines
1.0 KiB
CMake
64 lines
1.0 KiB
CMake
|
|
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
|
|
LeashKnot.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
|
|
LeashKnot.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(NOT MSVC)
|
|
add_library(Entities ${SRCS} ${HDRS})
|
|
target_link_libraries(Entities fmt::fmt WorldStorage)
|
|
endif()
|