DonCon2040/libs/mcp3204/CMakeLists.txt
2023-08-01 23:44:46 +02:00

11 lines
284 B
CMake

file(GLOB mcp3204_SOURCES src/*.cpp)
add_library(mcp3204 STATIC ${mcp3204_SOURCES})
target_include_directories(
mcp3204
PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include
PRIVATE ${CMAKE_CURRENT_LIST_DIR}/include/mcp3204)
target_link_libraries(mcp3204 PUBLIC pico_stdlib hardware_spi)