Files
yocto_rpi/sandbox_c/CMakeLists.txt
T
druppy ba41deb9ec
Build RPi image / build (push) Successful in 10s
Sandbox - ephemeral runner + shared cache / cargo (push) Successful in 1m27s
Sandbox - cmake + ccache on the pool / build (push) Successful in 10s
Add sandbox_c cmake project + ccache workflow for pool testing
2026-10-24 22:54:55 +02:00

12 lines
402 B
CMake

cmake_minimum_required(VERSION 3.22)
project(sandbox_c C)
set(CMAKE_C_STANDARD 11)
add_library(tempsense STATIC src/temperature.c src/convert.c src/parse.c src/format.c)
target_include_directories(tempsense PUBLIC include)
enable_testing()
add_executable(test_tempsense tests/test_temperature.c)
target_link_libraries(test_tempsense PRIVATE tempsense)
add_test(NAME tempsense COMMAND test_tempsense)