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; +}