13 lines
394 B
CMake
Raw Normal View History

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