diff options
author | Jim Miller <millerjv@crd.ge.com> | 2001-06-06 00:34:01 (GMT) |
---|---|---|
committer | Jim Miller <millerjv@crd.ge.com> | 2001-06-06 00:34:01 (GMT) |
commit | 84dc25e9f5cde423b0b5b23542f305ac6837fb31 (patch) | |
tree | 4e40a6c85a5e7915cc512a142e18e7c01d017476 /Source/cmMakefile.h | |
parent | 6282d41c2a8ca5129565f17dfb9eacdead83c898 (diff) | |
download | CMake-84dc25e9f5cde423b0b5b23542f305ac6837fb31.zip CMake-84dc25e9f5cde423b0b5b23542f305ac6837fb31.tar.gz CMake-84dc25e9f5cde423b0b5b23542f305ac6837fb31.tar.bz2 |
ENH: Added AddTest, and GenerateTestfile routines
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 8e1db98..fccd779 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -110,6 +110,17 @@ public: * Produce the output makefile. */ void GenerateMakefile(); + + /** + * Produce the output testfile. This produces a file in the build directory + * called Testfile with a syntax similar to CMakeLists.txt. It contains + * the SUBDIRS() and ADD_TEST() commands from the source CMakeLists.txt + * file with CMake variables expanded. Only the subdirs and tests + * within the valid control structures are replicated in Testfile + * (i.e. SUBDIRS() and ADD_TEST() commands within IF() commands that are + * not entered by CMake are not replicated in Testfile). + */ + void GenerateTestfile(); /** * Print the object state to std::cout. @@ -212,6 +223,11 @@ public: void AddDefinition(const char* name, bool); /** + * Add a test to the build. + */ + void AddTest(const std::vector<std::string> &args); + + /** * Specify the name of the project for this build. */ void SetProjectName(const char*); @@ -510,7 +526,9 @@ protected: std::vector<std::string> m_Utilities; std::vector<std::string> m_UtilityDirectories; std::vector<std::string> m_ListFiles; // list of command files loaded - + std::vector<std::vector<std::string> > m_Tests; // list of tests and args + + cmTarget::LinkLibraries m_LinkLibraries; std::string m_IncludeFileRegularExpression; |