grim/gplate

Parents 8eb812e8cbb5
Children 024758feafe2
let cmake/ctest create the CTestTestfile.cmake files. This is done by having an enable_testing all the way up the tree to where the tests are

refs #11
--- a/CTestTestfile.cmake Sat Jun 26 13:22:23 2010 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-# CMake generated Testfile for
-# Source directory: /home/grim/programming/gplate-clean
-# Build directory: /home/grim/programming/gplate-clean
-#
-# This file includes the relevent testing commands required for
-# testing this directory and lists subdirectories to be tested as well.
-SUBDIRS(gplate)
--- a/gplate/CMakeLists.txt Sat Jun 26 13:22:23 2010 -0500
+++ b/gplate/CMakeLists.txt Sat Jun 26 13:27:18 2010 -0500
@@ -2,6 +2,8 @@
add_subdirectory(tags)
add_subdirectory(variables)
+enable_testing()
+
set(GPLATE_HEADERS
gplate.h
gplate-collection.h
--- a/gplate/CTestTestfile.cmake Sat Jun 26 13:22:23 2010 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-SUBDIRS(functions tags variables)
--- a/gplate/functions/CMakeLists.txt Sat Jun 26 13:22:23 2010 -0500
+++ b/gplate/functions/CMakeLists.txt Sat Jun 26 13:27:18 2010 -0500
@@ -1,5 +1,7 @@
add_subdirectory(tests)
+enable_testing()
+
set(GPLATE_FUNCTIONS_HEADERS
gplate-for-function.h
gplate-include-function.h
--- a/gplate/functions/CTestTestfile.cmake Sat Jun 26 13:22:23 2010 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-SUBDIRS(tests)
--- a/gplate/functions/tests/CTestTestfile.cmake Sat Jun 26 13:22:23 2010 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-# CMake generated Testfile for
-# Source directory: /home/grim/programming/gplate-clean/gplate/functions/tests
-# Build directory: /home/grim/programming/gplate-clean/gplate/functions/tests
-#
-# This file includes the relevent testing commands required for
-# testing this directory and lists subdirectories to be tested as well.
-ADD_TEST(ForFunction "test-for-function")