pimoroni-pico/micropython/modules/bitmap_fonts/micropython.cmake

14 lines
453 B
CMake

set(MOD_NAME bitmap_fonts)
string(TOUPPER ${MOD_NAME} MOD_NAME_UPPER)
add_library(usermod_${MOD_NAME} INTERFACE)
target_sources(usermod_${MOD_NAME} INTERFACE
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/bitmap_fonts/bitmap_fonts.cpp
)
target_include_directories(usermod_${MOD_NAME} INTERFACE
${CMAKE_CURRENT_LIST_DIR}
${CMAKE_CURRENT_LIST_DIR}/../../../libraries/bitmap_fonts
)
target_link_libraries(usermod INTERFACE usermod_${MOD_NAME})