Skip to content

Commit 2c63ea8

Browse files
committed
Got a very basic test setup that has no tests. The basic CMake structure is setup. It will be refined as we go.
1 parent af38b36 commit 2c63ea8

File tree

6 files changed

+17638
-0
lines changed

6 files changed

+17638
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Build folders
2+
bin/
3+
build/

CMakeLists.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
cmake_minimum_required(VERSION 3.10)
2+
3+
project(DBC_Tests)
4+
5+
# specify the C++ standard
6+
set(CMAKE_CXX_STANDARD 11)
7+
set(CMAKE_CXX_STANDARD_REQUIRED True)
8+
9+
# Add in the debug flag
10+
set(GCC_COVERAGE_COMPILE_FLAGS "-g")
11+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS}")
12+
13+
# add where to find the source files
14+
include_directories(src)
15+
add_subdirectory(test)
16+

src/dbc.hpp

Whitespace-only changes.

test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
add_executable(dbc_test main.cpp)

0 commit comments

Comments
 (0)