diff options
author | notspiff <cptspiff@gmail.com> | 2017-07-21 11:44:41 +0200 |
---|---|---|
committer | Arne Morten Kvarving <cptspiff@gmail.com> | 2017-07-23 22:17:45 +0200 |
commit | dc7309ae77294040e89a9f480263d918bee1c6aa (patch) | |
tree | b0652e41e8c35fde60f56eeffffc0be38b50207c /CMakeLists.txt | |
parent | 51a70ff4374c79c7cfc517f503309851ef9db22f (diff) |
add static analysis unit tests
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bb5fbb3d89..e425e6e5bf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -239,6 +239,7 @@ add_compile_options(${ARCH_DEFINES} "${SYSTEM_DEFINES}" ${DEP_DEFINES} ${PATH_DE set(core_DEPENDS "" CACHE STRING "" FORCE) set(test_archives "" CACHE STRING "" FORCE) set(test_sources "" CACHE STRING "" FORCE) +set(sca_sources "" CACHE STRING "" FORCE) mark_as_advanced(core_DEPENDS) mark_as_advanced(test_archives) mark_as_advanced(test_sources) @@ -335,6 +336,9 @@ add_dependencies(${APP_NAME_LC}-test ${APP_NAME_LC}-libraries export-files) if(CORE_HOST_IS_TARGET) enable_testing() gtest_add_tests(${APP_NAME_LC}-test "" ${test_sources}) + if(NOT WIN32) + sca_add_tests() + endif() add_custom_target(check ${CMAKE_CTEST_COMMAND} WORKING_DIRECTORY ${PROJECT_BINARY_DIR}) add_dependencies(check ${APP_NAME_LC}-test) |