pimoroni-pico/drivers/motor/motor.cmake

15 lines
360 B
CMake
Raw Normal View History

2022-03-28 18:32:05 +01:00
set(DRIVER_NAME motor)
add_library(${DRIVER_NAME} INTERFACE)
target_sources(${DRIVER_NAME} INTERFACE
${CMAKE_CURRENT_LIST_DIR}/motor.cpp
2022-04-04 20:00:03 +01:00
${CMAKE_CURRENT_LIST_DIR}/motor_state.cpp
2022-03-28 18:32:05 +01:00
)
target_include_directories(${DRIVER_NAME} INTERFACE ${CMAKE_CURRENT_LIST_DIR})
target_link_libraries(${DRIVER_NAME} INTERFACE
pico_stdlib
hardware_pwm
pwm
)