minecraft-pi-docker/dependencies/minecraft-pi/CMakeLists.txt

21 lines
379 B
CMake
Raw Normal View History

2021-06-17 21:32:24 +00:00
project(minecraft-pi)
include(FetchContent)
## Minecraft: Pi Edition
# Download
FetchContent_Declare(
minecraft-pi
2021-07-04 23:02:45 +00:00
URL "${CMAKE_CURRENT_SOURCE_DIR}/minecraft-pi-0.1.1.tar.gz"
2021-06-17 21:32:24 +00:00
)
FetchContent_Populate(minecraft-pi)
# Install
install(
DIRECTORY "${minecraft-pi_SOURCE_DIR}/"
DESTINATION "${MCPI_INSTALL_DIR}"
USE_SOURCE_PERMISSIONS
REGEX "api" EXCLUDE
)