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.
50 lines
853 B
CMake
50 lines
853 B
CMake
|
|
SET (SRCS
|
|
BeaconEntity.cpp
|
|
BedEntity.cpp
|
|
BlockEntity.cpp
|
|
BlockEntityWithItems.cpp
|
|
BrewingstandEntity.cpp
|
|
ChestEntity.cpp
|
|
CommandBlockEntity.cpp
|
|
DispenserEntity.cpp
|
|
DropSpenserEntity.cpp
|
|
DropperEntity.cpp
|
|
EnderChestEntity.cpp
|
|
FlowerPotEntity.cpp
|
|
FurnaceEntity.cpp
|
|
HopperEntity.cpp
|
|
JukeboxEntity.cpp
|
|
MobHeadEntity.cpp
|
|
MobSpawnerEntity.cpp
|
|
NoteEntity.cpp
|
|
SignEntity.cpp
|
|
)
|
|
|
|
SET (HDRS
|
|
BeaconEntity.h
|
|
BedEntity.h
|
|
BlockEntity.h
|
|
BlockEntityWithItems.h
|
|
BrewingstandEntity.h
|
|
ChestEntity.h
|
|
CommandBlockEntity.h
|
|
DispenserEntity.h
|
|
DropSpenserEntity.h
|
|
DropperEntity.h
|
|
EnderChestEntity.h
|
|
FlowerPotEntity.h
|
|
FurnaceEntity.h
|
|
HopperEntity.h
|
|
JukeboxEntity.h
|
|
MobHeadEntity.h
|
|
MobSpawnerEntity.h
|
|
NoteEntity.h
|
|
SignEntity.h
|
|
)
|
|
|
|
if(NOT MSVC)
|
|
add_library(BlockEntities ${SRCS} ${HDRS})
|
|
target_link_libraries(BlockEntities fmt::fmt)
|
|
endif()
|