Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
800db3a0
Commit
800db3a0
authored
Feb 26, 2002
by
Bill Hoffman
Browse files
ENH: add RUN_TESTS
parent
ffb875f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Source/cmDSWWriter.cxx
View file @
800db3a0
...
...
@@ -80,6 +80,29 @@ void cmDSWWriter::WriteDSWFile(std::ostream& fout)
// of Debug only
m_Makefile
->
AddUtilityCommand
(
"ALL_BUILD"
,
"echo"
,
"
\"
Build all projects
\"
"
,
false
);
std
::
string
ctest
=
m_Makefile
->
GetDefinition
(
"CMAKE_COMMAND"
);
ctest
=
cmSystemTools
::
GetFilenamePath
(
ctest
.
c_str
());
ctest
+=
"/"
;
ctest
+=
"ctest"
;
ctest
+=
cmSystemTools
::
GetExecutableExtension
();
if
(
!
cmSystemTools
::
FileExists
(
ctest
.
c_str
()))
{
ctest
=
m_Makefile
->
GetDefinition
(
"CMAKE_COMMAND"
);
ctest
=
cmSystemTools
::
GetFilenamePath
(
ctest
.
c_str
());
ctest
+=
"/Debug/"
;
ctest
+=
"ctest"
;
ctest
+=
cmSystemTools
::
GetExecutableExtension
();
}
if
(
!
cmSystemTools
::
FileExists
(
ctest
.
c_str
()))
{
ctest
=
m_Makefile
->
GetDefinition
(
"CMAKE_COMMAND"
);
ctest
=
cmSystemTools
::
GetFilenamePath
(
ctest
.
c_str
());
ctest
+=
"/Release/"
;
ctest
+=
"ctest"
;
ctest
+=
cmSystemTools
::
GetExecutableExtension
();
}
m_Makefile
->
AddUtilityCommand
(
"RUN_TESTS"
,
ctest
.
c_str
(),
"-D $(IntDir)"
,
false
);
m_Makefile
->
FindSubDirectoryCMakeListsFiles
(
allListFiles
);
// For each cmMakefile, create a DSP for it, and
// add it to this DSW file
...
...
Source/cmMSDotNETGenerator.cxx
View file @
800db3a0
...
...
@@ -121,6 +121,30 @@ void cmMSDotNETGenerator::WriteSLNFile(std::ostream& fout)
// add a special target that depends on ALL projects for easy build
// of Debug only
m_Makefile
->
AddUtilityCommand
(
"ALL_BUILD"
,
"echo"
,
"
\"
Build all projects
\"
"
,
false
);
std
::
string
ctest
=
m_Makefile
->
GetDefinition
(
"CMAKE_COMMAND"
);
ctest
=
cmSystemTools
::
GetFilenamePath
(
ctest
.
c_str
());
ctest
+=
"/"
;
ctest
+=
"ctest"
;
ctest
+=
cmSystemTools
::
GetExecutableExtension
();
if
(
!
cmSystemTools
::
FileExists
(
ctest
.
c_str
()))
{
ctest
=
m_Makefile
->
GetDefinition
(
"CMAKE_COMMAND"
);
ctest
=
cmSystemTools
::
GetFilenamePath
(
ctest
.
c_str
());
ctest
+=
"/Debug/"
;
ctest
+=
"ctest"
;
ctest
+=
cmSystemTools
::
GetExecutableExtension
();
}
if
(
!
cmSystemTools
::
FileExists
(
ctest
.
c_str
()))
{
ctest
=
m_Makefile
->
GetDefinition
(
"CMAKE_COMMAND"
);
ctest
=
cmSystemTools
::
GetFilenamePath
(
ctest
.
c_str
());
ctest
+=
"/Release/"
;
ctest
+=
"ctest"
;
ctest
+=
cmSystemTools
::
GetExecutableExtension
();
}
m_Makefile
->
AddUtilityCommand
(
"RUN_TESTS"
,
ctest
.
c_str
(),
"-D $(IntDir)"
,
false
);
m_Makefile
->
FindSubDirectoryCMakeListsFiles
(
allListFiles
);
// For each cmMakefile, create a VCProj for it, and
...
...
@@ -732,6 +756,7 @@ void cmMSDotNETGenerator::WriteConfiguration(std::ostream& fout,
}
this
->
OutputDefineFlags
(
fout
);
fout
<<
"
\"\n
"
;
fout
<<
"
\t\t\t\t
RuntimeTypeInfo=
\"
TRUE
\"\n
"
;
fout
<<
"
\t\t\t\t
AssemblerListingLocation=
\"
"
<<
configName
<<
"
\"\n
"
;
fout
<<
"
\t\t\t\t
ObjectFile=
\"
"
<<
configName
<<
"
\\\"\n
"
;
fout
<<
"
\t\t\t\t
ProgramDataBaseFileName=
\"
"
<<
configName
<<
"
\"\n
"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment