22 lines
560 B
CMake
22 lines
560 B
CMake
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
|
|
|
|
add_library(peripherals STATIC
|
|
Src/peripherals_imu_icm.cpp
|
|
Src/peripherals_io.cpp
|
|
Src/peripherals_motors.cpp
|
|
Src/peripherals_pwm_channel.cpp
|
|
Src/peripherals_spi.cpp
|
|
Src/peripherals_utility.cpp
|
|
)
|
|
|
|
add_library(skullc::peripherals ALIAS peripherals)
|
|
|
|
target_include_directories(peripherals
|
|
PUBLIC
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/Inc>
|
|
$<INSTALL_INTERFACE:include>
|
|
)
|
|
|
|
## INSTALL
|
|
skullc_install_packages(skullc peripherals ${version})
|