Remove template cruft

This commit is contained in:
James P. Howard, II
2020-09-24 20:27:14 -04:00
parent 7d5482c082
commit 47cbb69ee2
29 changed files with 41 additions and 474 deletions

View File

@@ -4,26 +4,26 @@
cmake_minimum_required(VERSION 3.13.0 FATAL_ERROR)
create_test( NAME test-foo.cat # Name for the unit test
SOURCES # The sources that will be compiled [optional]
unit-foo.cat.cpp
PUBLIC_LINKED_TARGETS # The targest that need to be linked to this unit test [optional]
foo::cat
${COVERAGE_LIBS}
COMMAND # The command to be called.
test-foo.cat
PUBLIC_COMPILE_FEATURES
${COVERAGE_FLAGS}
)
create_test( NAME test-foo.bar # Name for the unit test
SOURCES # The sources that will be compiled [optional]
unit-foo.bar.cpp
PUBLIC_LINKED_TARGETS # The targest that need to be linked to this unit test [optional]
foo::bar
${COVERAGE_LIBS}
COMMAND # The command to be called.
test-foo.bar
create_test( NAME
unit-kami-agentid
SOURCES
unit-kami-agentid.cpp
PUBLIC_LINKED_TARGETS
kami::kami
${COVERAGE_LIBS}
COMMAND
unit-kami-agentid
PUBLIC_COMPILE_FEATURES
${COVERAGE_FLAGS}
)
${COVERAGE_FLAGS})
create_test( NAME
unit-kami-agent
SOURCES
unit-kami-agent.cpp
PUBLIC_LINKED_TARGETS
kami::kami
${COVERAGE_LIBS}
COMMAND
unit-kami-agent
PUBLIC_COMPILE_FEATURES
${COVERAGE_FLAGS})

View File

@@ -1,7 +0,0 @@
#include <foo/bar/bar.h>
int main()
{
foo::bar();
return 0;
}

View File

@@ -1,8 +0,0 @@
#include <foo/cat/cat.h>
int main()
{
foo::cat C;
C.call_bar();
return 0;
}

7
test/unit-kami-agent.cpp Normal file
View File

@@ -0,0 +1,7 @@
#include <kami/agent.hpp>
int main() {
kami::Agent agent;
agent.step();
return 0;
}

View File

@@ -0,0 +1,5 @@
#include <kami/agent.hpp>
int main(void) {
kami::AgentID agentid;
}