Skip to content
Snippets Groups Projects
Commit 434c3ebd authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

remove extra ASTYLE target, correct exclude unittest template

parent 537a7f1e
No related branches found
No related tags found
No related merge requests found
find_program(ASTYLE_EXECUTABLE astyle)
add_custom_target(ASTYLE)
if(ASTYLE_EXECUTABLE)
message(STATUS "Found astyle, using astyle to format code of target ${target}.")
add_custom_target(astyle ALL
COMMAND
${ASTYLE_EXECUTABLE} -i
--exclude=${PROJECT_BINARY_DIR}
--recursive -n --style=google --indent=spaces=4
--recursive -n --style=google
"${PROJECT_SOURCE_DIR}/*.cpp" "${PROJECT_SOURCE_DIR}/*.h"
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
VERBATIM
......
......@@ -19,6 +19,7 @@ function(gtest target test_source_files test_libraries)
if (CMAKE_COMPILER_IS_GNUCXX)
include(CodeCoverage)
APPEND_COVERAGE_COMPILER_FLAGS()
set (COVERAGE_EXCLUDES '*/unittests/*')
SETUP_TARGET_FOR_COVERAGE(NAME coverage-${target} EXECUTABLE test-${target} ${target})
add_test(NAME coveragetest-${target}
COMMAND ${CMAKE_MODULE_PATH}/check_test.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment