CMAKE_MINIMUM_REQUIRED(VERSION 3.25.1)
FIND_LIBRARY(CMOCKA cmocka REQUIRED)
+FIND_PROGRAM(CPPCHECK cppcheck REQUIRED)
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}/src)
COMMAND ./time_format_tests
DEPENDS break_tests
worktime_tests
- time_format_tests)
\ No newline at end of file
+ time_format_tests)
+
+ADD_CUSTOM_COMMAND(TARGET run_tests
+ POST_BUILD
+ COMMAND ${CPPCHECK}
+ --check-level=exhaustive
+ --enable=warning,style
+ ${CMAKE_SOURCE_DIR}/src
+ ${CMAKE_SOURCE_DIR}/tests)
\ No newline at end of file