Tactility/tests/tactility-core/CMakeLists.txt
Ken Van Hoeylandt 47377439dd
Implement unit testing (#30)
- 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`
2024-02-02 00:12:36 +01:00

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
)