From d5f411e304c15f262c297264addae7ee4d65f8c5 Mon Sep 17 00:00:00 2001 From: Austin McCartney Date: Tue, 16 Oct 2018 17:31:36 -0600 Subject: [PATCH] Added missing CMake file and added exception to .gitignore --- .gitignore | 1 + test/CMakeLists.txt | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 test/CMakeLists.txt diff --git a/.gitignore b/.gitignore index 6ec82c5..f37d11b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ test/** !test/test.cpp !test/example.cpp +!test/CMakeLists.txt build/ diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 0000000..6985390 --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1,7 @@ +add_executable(mio.test test.cpp) +target_link_libraries(mio.test PRIVATE mio::mio) +add_test(NAME mio.test COMMAND mio.test) + +add_executable(mio.example example.cpp) +target_link_libraries(mio.example PRIVATE mio::mio) +add_test(NAME mio.example COMMAND mio.example)