mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
- Create `test` and `tactility-core-tests` subprojects - Created tests for `thread.c` - Fixed issue with thread cleanup (see what I did there? :P) - Removed functions from `thread.h` that did not exist anymore - Updated `ideas.md`
22 lines
462 B
CMake
22 lines
462 B
CMake
project(tactility-core-tests)
|
|
|
|
enable_language(C CXX ASM)
|
|
|
|
set(CMAKE_CXX_COMPILER g++)
|
|
|
|
file(GLOB_RECURSE TEST_SOURCES ${PROJECT_SOURCE_DIR}/*.cpp)
|
|
add_executable(tactility-core-tests EXCLUDE_FROM_ALL ${TEST_SOURCES})
|
|
|
|
target_include_directories(tactility-core-tests PRIVATE
|
|
${DOCTESTINC}
|
|
)
|
|
|
|
add_test(NAME tactility-core-tests
|
|
COMMAND tactility-core-tests
|
|
)
|
|
|
|
target_link_libraries(tactility-core-tests
|
|
PUBLIC tactility-core
|
|
freertos-kernel
|
|
)
|