File tree Expand file tree Collapse file tree 3 files changed +12
-13
lines changed Expand file tree Collapse file tree 3 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 75
75
76
76
- name : Test
77
77
run : >
78
- ctest --test-dir ${{ github.workspace }}/build/default
78
+ ctest
79
+ -C Debug
80
+ -T test
81
+ --rerun-failed
82
+ --output-on-failure
83
+ --test-dir ${{ github.workspace }}/build/default
Original file line number Diff line number Diff line change @@ -16,14 +16,15 @@ set(CMAKE_CXX_STANDARD 17)
16
16
set (CMAKE_CXX_STANDARD_REQUIRED ON )
17
17
set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
18
18
19
- SET (GCC_COVERAGE_COMPILE_FLAGS "-fsanitize=address -fprofile-arcs -ftest-coverage -g -O0" )
19
+ SET (GCC_COVERAGE_COMPILE_FLAGS "-fsanitize=address -fprofile-arcs -ftest-coverage -g -O0 -save-temps " )
20
20
SET (GCC_COVERAGE_LINK_FLAGS "--coverage" )
21
21
22
22
if (CMAKE_GENERATOR MATCHES "Unix Makefiles" )
23
23
24
- SET (CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS} " )
25
- SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS} " )
26
- SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS} " )
24
+ SET (CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS} " )
25
+ SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS} " )
26
+ SET (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS} " )
27
+ SET (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS} " )
27
28
28
29
SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS} " )
29
30
Original file line number Diff line number Diff line change 1
- file (GLOB_RECURSE SOURCES "src/*.c" )
1
+ file (GLOB_RECURSE SOURCES "src/*.c" "src/*.cpp" )
2
2
add_library (exercises STATIC ${SOURCES} )
3
3
4
4
target_include_directories (exercises
@@ -7,13 +7,6 @@ target_include_directories(exercises
7
7
$< INSTALL_INTERFACE:include>
8
8
)
9
9
10
- set_property (TARGET exercises PROPERTY C_STANDARD 11 )
11
-
12
- target_compile_options (exercises
13
- PUBLIC
14
- -save-temps
15
- )
16
-
17
10
install (TARGETS exercises
18
11
EXPORT exercisesConfig
19
12
ARCHIVE DESTINATION lib
You can’t perform that action at this time.
0 commit comments