minecraft-pi-reborn/libreborn/CMakeLists.txt
TheBrokenRail 03312f44b6
All checks were successful
minecraft-pi-reborn/pipeline/head This commit looks good
2.3.1
2022-03-14 19:09:25 -04:00

13 lines
470 B
CMake

project(libreborn)
add_library(reborn-util STATIC src/util/elf.c src/util/exec.c src/util/string.c src/util/util.c)
target_include_directories(reborn-util PUBLIC include)
if(BUILD_ARM_COMPONENTS)
add_library(reborn-patch SHARED src/patch/patch.c)
target_link_libraries(reborn-patch dl reborn-util)
target_compile_definitions(reborn-patch PUBLIC -DREBORN_HAS_PATCH_CODE)
# Install
install(TARGETS reborn-patch DESTINATION "${MCPI_LIB_DIR}")
endif()