e6abd496f9
* **New Features** * Time and delay utilities added (ticks, ms, µs); SD card now uses an expansion-header CS pin; HTTP downloads warn when run on the GUI task and yield to avoid blocking. * **Bug Fixes / Reliability** * Many hard-crash paths converted to guarded checks to reduce abrupt termination and improve stability. * **Tests** * Unit tests added to validate time and delay accuracy. * **Chores** * License header and build/macro updates.
28 lines
548 B
CMake
28 lines
548 B
CMake
project(TactilityCoreTests)
|
|
|
|
enable_language(C CXX ASM)
|
|
|
|
set(CMAKE_CXX_COMPILER g++)
|
|
|
|
file(GLOB_RECURSE TEST_SOURCES ${PROJECT_SOURCE_DIR}/*.cpp)
|
|
add_executable(TactilityTests EXCLUDE_FROM_ALL ${TEST_SOURCES})
|
|
|
|
add_definitions(-D_Nullable=)
|
|
add_definitions(-D_Nonnull=)
|
|
|
|
target_include_directories(TactilityTests PRIVATE
|
|
${DOCTESTINC}
|
|
)
|
|
|
|
add_test(NAME TactilityTests
|
|
COMMAND TactilityTests
|
|
)
|
|
|
|
target_link_libraries(TactilityTests PRIVATE
|
|
Tactility
|
|
TactilityCore
|
|
TactilityKernel
|
|
Simulator
|
|
SDL2::SDL2-static SDL2-static
|
|
)
|