minecraft-pi-docker/libreborn/CMakeLists.txt
2022-03-09 18:47:31 -05:00

13 lines
393 B
CMake

project(libreborn)
add_library(reborn-headers INTERFACE)
target_include_directories(reborn-headers INTERFACE include)
if(BUILD_ARM_COMPONENTS)
add_library(reborn SHARED src/patch.c)
target_link_libraries(reborn dl reborn-headers)
target_compile_definitions(reborn PUBLIC -DREBORN_HAS_COMPILED_CODE)
# Install
install(TARGETS reborn DESTINATION "${MCPI_LIB_DIR}")
endif()