Skip to content
Snippets Groups Projects
Commit e368f30e authored by Lukas Garbas's avatar Lukas Garbas
Browse files

Meson und Catch2 integration

parent 3984abfc
No related merge requests found
This diff is collapsed.
meson.build 100644 → 100755
project('gp', 'cpp')
project(
'gp', # project name
'cpp', # C++ project
default_options : ['cpp_std=c++11']) # compile for C++
# it will be referred from subdir projects
inc = include_directories('include')
executable('gp-bnb',
'bnb/main.cpp',
'bnb/graph.cpp',
'bnb/partition.cpp',
include_directories: include_directories('include/'))
include_directories: inc)
# meson will try to find a meson.build file inside following directories
#subdir('include')
#subdir('bnb')
subdir('test')
#include <catch2/catch.hpp>
#include <gp-bnb/graph.hpp>
//#include <gp-bnb/MetisReader.hpp>
// Tests for Branch&Bound algorithm
TEST_CASE("BnbTest") {
}
\ No newline at end of file
#define CATCH_CONFIG_MAIN // It tells Catch to provide a main() - only do this in one cpp file
#include <catch2/catch.hpp>
#include <gp-bnb/graph.hpp>
//#include <gp-bnb/MetisReader.hpp>
// Tests for Graph data structure
TEST_CASE("GraphStructureTest") {
}
\ No newline at end of file
testexe = executable(
'gp_unittests', # test executable name
'graph_test.cpp',
'reader_test.cpp',
'bnb_test.cpp', # tests source files to be compiled
include_directories : inc) # declared include directories in root :code:`meson.build`
# test execution
test('unit_tests', testexe)
#include <catch2/catch.hpp>
#include <gp-bnb/graph.hpp>
//#include <gp-bnb/MetisReader.hpp>
// Tests for MetisReader
TEST_CASE("MetisReaderTest") {
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment