File tree Expand file tree Collapse file tree 4 files changed +18021
-0
lines changed Expand file tree Collapse file tree 4 files changed +18021
-0
lines changed Original file line number Diff line number Diff line change
1
+ build /
2
+
Original file line number Diff line number Diff line change
1
+ ##########################################################################
2
+ cmake_minimum_required (VERSION 2.8 )
3
+ ##########################################################################
4
+ project (can-test )
5
+ ##########################################################################
6
+ include_directories (../../src )
7
+ include_directories (external/catch2/v2.13.10/include )
8
+ ##########################################################################
9
+ set (CMAKE_CXX_STANDARD 17 )
10
+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin )
11
+ ##########################################################################
12
+ set (TEST_TARGET ${CMAKE_PROJECT_NAME} )
13
+ ##########################################################################
14
+ set (TEST_TARGET_SRCS
15
+ src/test_main.cpp
16
+ )
17
+ ##########################################################################
18
+ add_compile_options (-Wall -Wextra -Wpedantic -Werror )
19
+ ##########################################################################
20
+ set (CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "--coverage" )
21
+ set (CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "--coverage -Wno-deprecated-copy" )
22
+ ##########################################################################
23
+ add_executable (
24
+ ${TEST_TARGET}
25
+ ${TEST_TARGET_SRCS}
26
+ )
27
+ ##########################################################################
You can’t perform that action at this time.
0 commit comments