diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-06-23 12:32:41 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-06-24 20:17:53 +0000 |
commit | 29b2dd6315ffe29cd212c4d5a846479f56b33d52 (patch) | |
tree | 881ba80e88fc461a688c0416abb10956fe14e247 /cmake | |
parent | 5c2600d87bd000b32b2a37c5a74275912ddd5328 (diff) |
Use clang-format for C++ code.
`clang-format -style='{BasedOnStyle: Google, ColumnLimit: 100}'`
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/CompileGTest.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/CompileGTest.cmake b/cmake/CompileGTest.cmake index b7e0175f..f9aa4506 100644 --- a/cmake/CompileGTest.cmake +++ b/cmake/CompileGTest.cmake | |||
@@ -50,7 +50,7 @@ endif() | |||
50 | 50 | ||
51 | function(unit_test subdir target) | 51 | function(unit_test subdir target) |
52 | if(HAVE_GTEST) | 52 | if(HAVE_GTEST) |
53 | add_executable(unit_${target}_test ${subdir}/${target}_test.cpp) | 53 | add_executable(unit_${target}_test ${subdir}/${target}_test.cc) |
54 | target_link_modules(unit_${target}_test toxcore gtest) | 54 | target_link_modules(unit_${target}_test toxcore gtest) |
55 | set_target_properties(unit_${target}_test PROPERTIES COMPILE_FLAGS "${TEST_CXX_FLAGS}") | 55 | set_target_properties(unit_${target}_test PROPERTIES COMPILE_FLAGS "${TEST_CXX_FLAGS}") |
56 | add_test(NAME ${target} COMMAND ${CROSSCOMPILING_EMULATOR} unit_${target}_test) | 56 | add_test(NAME ${target} COMMAND ${CROSSCOMPILING_EMULATOR} unit_${target}_test) |