2022-06-27 18:47:55 +00: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-05 01:08:34 +00:00
|
|
|
set(CMAKE_SYSTEM_NAME "Linux")
|
|
|
|
set(CMAKE_SYSTEM_PROCESSOR "arm")
|
2022-06-27 18:47:55 +00:00
|
|
|
|
|
|
|
# Start Project
|
|
|
|
project(recipes)
|
|
|
|
|
|
|
|
# Include SDK
|
|
|
|
include("$ENV{HOME}/.minecraft-pi/sdk/lib/minecraft-pi-reborn-client/sdk/sdk.cmake")
|
|
|
|
|
|
|
|
# Build
|
|
|
|
add_library(recipes SHARED recipes.cpp)
|
|
|
|
target_link_libraries(recipes mods-headers reborn-util symbols misc)
|