minecraft-pi-docker/libreborn/CMakeLists.txt

13 lines
394 B
CMake
Raw Normal View History

2021-01-27 21:26:19 +00:00
project(libreborn)
2021-06-17 21:32:24 +00:00
add_library(reborn-headers INTERFACE)
target_include_directories(reborn-headers INTERFACE include)
2021-01-27 21:26:19 +00:00
2021-06-17 21:32:24 +00:00
if(BUILD_ARM_COMPONENTS)
add_library(reborn SHARED src/reborn.c)
2021-06-17 21:32:24 +00:00
target_link_libraries(reborn dl reborn-headers)
2021-09-12 03:18:12 +00:00
target_compile_definitions(reborn PUBLIC -DREBORN_HAS_COMPILED_CODE)
2021-06-17 21:32:24 +00:00
# Install
install(TARGETS reborn DESTINATION "${MCPI_LIB_DIR}")
endif()