skullc-peripherals/Messaging/CMakeLists.txt
Erki bb220c9e92
Some checks failed
continuous-integration/drone/push Build is failing
gitea/skullc-peripherals/pipeline/head There was a failure building this commit
Refactor cmake support to be less leaky
2022-06-16 23:19:51 +03:00

19 lines
415 B
CMake

cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
add_library(messaging INTERFACE)
add_library(skullc::messaging ALIAS messaging)
target_include_directories(messaging
INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/Inc>
$<INSTALL_INTERFACE:include>
)
set_target_properties(messaging
PROPERTIES
CXX_STANDARD 17
)
skullc_install_packages(skullc messaging ${SKULLC_VERSION})