Brad King
35936433e1
ENH: Merging changes from branch CMake-SourceFile2-b between tags
CMake-SourceFile2-bp and CMake-SourceFile2-b-mp1 to trunk. This
commit is surrounded by tags CMake-SourceFile2-b-mp1-pre and
CMake-SourceFile2-b-mp1-post on the trunk.
The changes re-implement cmSourceFile and the use of it to allow
instances to be created much earlier. The use of cmSourceFileLocation
allows locating a source file referenced by a user to be much simpler
and more robust. The two SetName methods are no longer needed so some
duplicate code has been removed. The strange "SourceName" stuff is
gone. Code that created cmSourceFile instances on the stack and then
sent them to cmMakefile::AddSource has been simplified and converted
to getting cmSourceFile instances from cmMakefile. The CPluginAPI has
preserved the old API through a compatibility interface.
Source lists are gone. Targets now get real instances of cmSourceFile
right away instead of storing a list of strings until the final pass.
TraceVSDependencies has been re-written to avoid the use of
SourceName. It is now called TraceDependencies since it is not just
for VS. It is now implemented with a helper object which makes the
code simpler.
18 years ago
Ken Martin
5d11564c35
ENH: allow source file properties to chain to Directories and up
19 years ago
Ken Martin
27379d7b08
ENH: make properties a bit more formal with documentation and chaining
19 years ago
Ken Martin
3d96e52261
STYLE: some m_ to this-> cleanup
20 years ago
Andy Cedilnik
634343c3e8
STYLE: Fix some style issues
20 years ago
Bill Hoffman
b41d447935
ENH: use GetRequiredDefinition instead of GetDefinition and crash
21 years ago
Andy Cedilnik
42bc978b5b
BUG: When creating a test driver, do not remove the old file, so if nothing changes, it will not rebuild. Fixes Bug #885 - cmCreateTestSource overwrite file when running cmake
21 years ago
Bill Hoffman
e539cf9f7c
ENH: make test driver more flexible by using a configured file instead of generating all the code. fixes bug 28
22 years ago
Ken Martin
737d2fc7d6
fix compiler warning
22 years ago
Bill Hoffman
711febc82d
ENH: null terminate at the end of the list
22 years ago
Ken Martin
49c8ca5bca
undid change because other changes make it no longer neccesary
22 years ago
Ken Martin
b1095dd2f0
minor fix
22 years ago
Brad King
9676bb4b22
BUG: Generate 0 into test driver instead of NULL.
23 years ago
Brad King
4888c088ae
ENH: Moved ExpandListVariables out of individual commands. Argument evaluation rules are now very consistent. Double quotes can always be used to create exactly one argument, regardless of contents inside.
23 years ago
Brad King
3bcbca96ab
ENH: Improved implementation of MSVC debug hook to only add the hook if DART_TEST_FROM_DART is set in the environment. This is better than always adding the hook and testing the environment from the callback.
23 years ago
Brad King
e9e3855c65
ENH: Generate code to setup MSVC debug library hook. The test driver program will not display error dialogs if DART_TEST_FROM_DART is set in the environment.
23 years ago
Brad King
1f6a3c67b1
ENH: Added reference to Copyright.txt. Removed old reference to ITK copyright. Changed program name to CMake instead of Insight in source file header. Also removed tabs.
23 years ago
Andy Cedilnik
c3007233ec
Rename variables to remove warnings
23 years ago
Ken Martin
7ddb408621
removed some includes
23 years ago
Ken Martin
7b5a8762c6
modified how source files store properties
23 years ago
Ken Martin
e1b6ba9f95
fixed some compiler warnings and leaks
23 years ago
Ken Martin
86709a4ccf
fixed some compiler warnings and leaks
23 years ago
Ken Martin
3704cc268e
fixed some compiler warnings and leaks
23 years ago
Ken Martin
1538956b7f
fixed support for C test programs
23 years ago
Sebastien Barre
843616ec7e
FIX: <stdlib.h> is enough to get malloc()/free()
23 years ago
Ken Martin
0f6e022dca
updated to handle extensions
23 years ago
Sebastien Barre
c05e3613ce
FIX: la commande créait du code C++. Du code C devrait faire l'affaire.
23 years ago
Sebastien Barre
f87057813d
FIX: la commande créait du code C++. Du code C devrait faire l'affaire.
23 years ago
Ken Martin
44a7cd55ff
removed all source lists from the system and made them vectors. Also appended _CMAKE_PATH to the end of the automatic cache entries for executables and libraries. Odds of all these changes working are slim but cmake builds and passes all its tests. VTK40 starts building
23 years ago
Ken Martin
38145ad5a4
modified create test source to create a vector
23 years ago
Bill Hoffman
e4dce08591
ENH: add the ability to process command line arguments in the test driver before the test driver gets them
24 years ago
Sebastien Barre
dbe20d8d3b
FIX: should compare to 0, not NULL
24 years ago
Bill Hoffman
7d76de4403
make sure ; expansion is done in all commands
24 years ago
Bill Hoffman
8b3b49a010
ENH: major change, the cmMakefile now contains a master list of cmSourceFile objects, the source lists reference the list via pointers, also you can now set properties on a file, like compile flags, abstract, etc.
24 years ago
Sebastien Barre
627ab62ce0
FIX: tolower is in <ctype.h> !, frenchy
24 years ago
Sebastien Barre
e081345595
ENH: perform case insensitive comparison on test names
24 years ago
Sebastien Barre
b63d6ee7dd
FIX: cmSourceFile::SetName was not called correctly for the test source files
24 years ago
Sebastien Barre
b0eb1031b7
ENH: small formatting enh
24 years ago
Sebastien Barre
0fd3ae7ba5
ENH: keep the name of the test as close to the source file (only the function name is cleaned up)
24 years ago
Sebastien Barre
95519ef1b7
ENH: add -R (similar to ctest but use substr instead of regexp). indent.
24 years ago
Sebastien Barre
a5b833119d
ENH: now supports tests inside sub-dirs
24 years ago
Bill Hoffman
f4bf694bae
ENH: if no arguments are given and there is only one test, then run it
24 years ago
Bill Hoffman
2f639d37b5
ENH: add new command to create a test driver
24 years ago