DonCon2040/libs/pico_ssd1306/CMakeLists.txt
2023-05-22 00:08:23 +02:00

11 lines
320 B
CMake

file(GLOB pico_ssd1306_SOURCES src/*.c)
add_library(pico_ssd1306 STATIC ${pico_ssd1306_SOURCES})
target_include_directories(
pico_ssd1306
PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include
PRIVATE ${CMAKE_CURRENT_LIST_DIR}/include/ssd1306)
target_link_libraries(pico_ssd1306 PUBLIC pico_stdlib hardware_i2c hardware_dma)