You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
minecraft-pi-reborn/libreborn/CMakeLists.txt

19 lines
740 B

2 years ago
project(libreborn)
8 months ago
# Config
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/include/libreborn")
configure_file(include/libreborn/config.h.in "${CMAKE_CURRENT_BINARY_DIR}/include/libreborn/config.h" ESCAPE_QUOTES @ONLY)
# Util
add_library(reborn-util STATIC src/util/elf.c src/util/exec.c src/util/string.c src/util/util.c)
8 months ago
target_include_directories(reborn-util PUBLIC include PUBLIC "${CMAKE_CURRENT_BINARY_DIR}/include")
2 years ago
8 months ago
# Patch
2 years ago
if(BUILD_ARM_COMPONENTS)
11 months ago
add_library(reborn-patch SHARED src/patch/patch.c)
target_link_libraries(reborn-patch dl pthread reborn-util)
11 months ago
target_compile_definitions(reborn-patch PUBLIC -DREBORN_HAS_PATCH_CODE)
2 years ago
# Install
11 months ago
install(TARGETS reborn-patch DESTINATION "${MCPI_LIB_DIR}")
2 years ago
endif()