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
0223ba91
Commit
0223ba91
authored
Mar 29, 2002
by
Bill Hoffman
Browse files
ENH: add test for set to create source lists
parent
fc6b8e8b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Tests/TestDriver/CMakeLists.txt
View file @
0223ba91
PROJECT
(
TestDriverTest
)
SET
(
Extra_SRCS testExtraStuff.cxx testExtraStuff2.cxx
)
SET
(
Extra_SRCS
${
Extra_SRCS
}
;testExtraStuff3.cxx
)
CREATE_TEST_SOURCELIST
(
testSrcs
TestDriverTest
test1
test2
subdir/test3
)
ADD_EXECUTABLE
(
TestDriverTest testSrcs
)
ADD_EXECUTABLE
(
TestDriverTest testSrcs
${
Extra_SRCS
}
)
Tests/TestDriver/test1.cxx
View file @
0223ba91
#include <stdio.h>
int
testExtraStuff3
();
int
testExtraStuff
();
int
testExtraStuff2
();
int
test1
(
int
ac
,
char
**
av
)
{
if
(
!
testExtraStuff2
())
{
return
-
1
;
}
if
(
!
testExtraStuff
())
{
return
-
1
;
}
if
(
!
testExtraStuff3
())
{
return
-
1
;
}
printf
(
"test1
\n
"
);
for
(
int
i
=
0
;
i
<
ac
;
i
++
)
printf
(
"arg %d is %s
\n
"
,
ac
,
av
[
i
]);
...
...
Tests/TestDriver/testExtraStuff.cxx
0 → 100644
View file @
0223ba91
int
testExtraStuff
()
{
return
1
;
}
Tests/TestDriver/testExtraStuff2.cxx
0 → 100644
View file @
0223ba91
int
testExtraStuff2
()
{
return
1
;
}
Tests/TestDriver/testExtraStuff3.cxx
0 → 100644
View file @
0223ba91
int
testExtraStuff3
()
{
return
1
;
}
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