Restructure to engine library with test executables

This commit is contained in:
karl 2021-03-16 14:55:54 +01:00
parent b778751254
commit bb85fab65f
8 changed files with 8 additions and 3 deletions

View File

@ -5,6 +5,11 @@ env = DefaultEnvironment(tools=['default', 'compilation_db'])
env.CompilationDatabase()
env.Append(CCFLAGS=["-Wall", "-Wextra", "-Werror", "-pedantic"])
env.Append(CPPPATH=['.', 'include'])
# Build the output program
Program('vector.out', Glob('*.cpp'))
# Build the test programs
catch_cpp = "test/catch_amalgamated.cpp"
Program('vector-test.out', [catch_cpp, 'test/vector-test.cpp'])
# Build the library
SharedLibrary('ged', Glob('cpp/*.cpp'))

0
cpp/Logger.cpp Normal file
View File

BIN
cpp/Logger.os Normal file

Binary file not shown.

0
include/Logger.h Normal file
View File

View File

@ -377,4 +377,4 @@ SCENARIO("Constructors and Destructors are called as expected", "[vector]") {
}
}
}
}
}