mirror of
https://github.com/celisej567/mcpe.git
synced 2026-01-03 05:49:04 +03:00
29 lines
794 B
CMake
29 lines
794 B
CMake
# Common (low-level?) stuff
|
|
|
|
add_library(reminecraftpe-common STATIC
|
|
Random.cpp Random.hpp
|
|
Utils.cpp Utils.hpp
|
|
Mth.cpp Mth.hpp
|
|
Timer.cpp Timer.hpp
|
|
CThread.cpp CThread.hpp
|
|
Util.cpp Util.hpp
|
|
Logger.cpp Logger.hpp
|
|
SmoothFloat.cpp SmoothFloat.hpp
|
|
)
|
|
|
|
target_link_libraries(reminecraftpe-common PUBLIC
|
|
reminecraftpe-network
|
|
)
|
|
#target_link_libraries(reminecraftpe-common PRIVATE
|
|
# reminecraftpe-renderer
|
|
#)
|
|
|
|
# zlib - Android builds with its own version
|
|
# Hack - If we're not building for Android, surely we're building with SDL
|
|
if (USE_SDL)
|
|
add_subdirectory(../../thirdparty/zlib zlib)
|
|
target_link_libraries(reminecraftpe-common PUBLIC zlib)
|
|
elseif (NOT ANDROID)
|
|
target_include_directories(reminecraftpe-common PRIVATE ../../thirdparty/zlib)
|
|
endif()
|