|
|
|
@ -26,9 +26,9 @@ add_executable(usbtest src/main.c src/util.c)
|
|
|
|
|
|
|
|
|
|
set_target_properties(usbtest PROPERTIES SUFFIX .elf)
|
|
|
|
|
|
|
|
|
|
#add_custom_target(libopencm3 make TARGETS=stm32/f1 -j8 WORKING_DIRECTORY ${LIBOPENCM3_DIR})
|
|
|
|
|
add_custom_target(libopencm3 make TARGETS=stm32/f1 -j8 WORKING_DIRECTORY ${LIBOPENCM3_DIR})
|
|
|
|
|
#link_directories(${LIBOPENCM3_DIR}/lib)
|
|
|
|
|
#target_link_libraries(usbtest PUBLIC ${LIBOPENCM3_DIR}/lib/libopencm3_stm32f1.a)
|
|
|
|
|
target_link_libraries(usbtest PUBLIC ${LIBOPENCM3_DIR}/lib/libopencm3_stm32f1.a)
|
|
|
|
|
|
|
|
|
|
add_subdirectory(RTT)
|
|
|
|
|
target_link_libraries(usbtest PUBLIC RTT)
|
|
|
|
|