2022-06-25 17:30:08 -04:00
|
|
|
cmake_minimum_required(VERSION 3.16.0)
|
|
|
|
|
|
|
|
# Build For ARM
|
|
|
|
set(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc)
|
|
|
|
set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++)
|
2023-12-04 20:08:34 -05:00
|
|
|
set(CMAKE_SYSTEM_NAME "Linux")
|
|
|
|
set(CMAKE_SYSTEM_PROCESSOR "arm")
|
2022-06-25 17:30:08 -04:00
|
|
|
|
|
|
|
# Start Project
|
2022-06-26 21:17:52 -04:00
|
|
|
project(chat-commands)
|
2022-06-25 17:30:08 -04:00
|
|
|
|
|
|
|
# Include SDK
|
2024-06-15 08:52:15 -04:00
|
|
|
include("$ENV{HOME}/.minecraft-pi/sdk/lib/minecraft-pi-reborn/sdk/sdk.cmake")
|
2022-06-25 17:30:08 -04:00
|
|
|
|
|
|
|
# Build
|
2022-06-26 21:17:52 -04:00
|
|
|
add_library(chat-commands SHARED chat-commands.cpp)
|
2024-01-23 21:57:57 -05:00
|
|
|
target_link_libraries(chat-commands mods reborn-patch symbols)
|