minecraft-pi-reborn/libreborn/CMakeLists.txt

12 lines
321 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)
# Install
install(TARGETS reborn DESTINATION "${MCPI_LIB_DIR}")
endif()