Added cross-compiling support.

This commit is contained in:
James Goppert
2015-10-04 21:28:22 -04:00
parent 04897f613d
commit 0b0e7bc6cc
6 changed files with 265 additions and 17 deletions
@@ -0,0 +1,18 @@
include_directories(
./src
./include
)
add_library(uavcan_stm32_driver STATIC
./src/uc_stm32_can.cpp
./src/uc_stm32_clock.cpp
./src/uc_stm32_thread.cpp
)
add_dependencies(uavcan_stm32_driver uavcan)
install(DIRECTORY include/uavcan_stm32 DESTINATION include)
install(TARGETS uavcan_stm32_driver DESTINATION lib)
# vim: set et ft=cmake fenc=utf-8 ff=unix sts=4 sw=4 ts=4 :)