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
|
|
|
)
|
2024-12-17 10:50:20 +00:00
|
|
|
FetchContent_MakeAvailable(minecraft-pi)
|
2021-06-17 21:32:24 +00:00
|
|
|
|
|
|
|
# Install
|
2022-05-29 22:44:27 +00:00
|
|
|
install(
|
|
|
|
DIRECTORY "${minecraft-pi_SOURCE_DIR}/"
|
2022-06-10 01:31:40 +00:00
|
|
|
DESTINATION "${MCPI_INSTALL_DIR}/game"
|
2022-05-29 22:44:27 +00:00
|
|
|
USE_SOURCE_PERMISSIONS
|
|
|
|
REGEX "api" EXCLUDE
|
|
|
|
)
|
2022-06-10 01:31:40 +00:00
|
|
|
install_symlink("game/minecraft-pi" "${MCPI_INSTALL_DIR}/minecraft-pi")
|