From 1ed0991f3b03fe6f34b82cc415e7bb609a15172a Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 7 Sep 2015 02:46:06 -0500 Subject: [PATCH] Added test directory. --- CMakeLists.txt | 5 +++++ test/CMakeLists.txt | 6 ++++++ test/test.cpp | 3 +++ 3 files changed, 14 insertions(+) create mode 100644 test/CMakeLists.txt create mode 100644 test/test.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index b4551eeca..31f2b4571 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,4 +17,9 @@ add_definitions( #-Os # GCC size optimization flag ) +enable_testing() + add_subdirectory(src) +add_subdirectory(test) + +add_test("MemFs" test/MemFsTest) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 000000000..d288d22e2 --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1,6 @@ +cmake_minimum_required(VERSION 2.8.8) + +add_executable( + MemFsTest + test.cpp +) diff --git a/test/test.cpp b/test/test.cpp new file mode 100644 index 000000000..cb3f7482f --- /dev/null +++ b/test/test.cpp @@ -0,0 +1,3 @@ +int main() { + return 0; +}