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
1623dc21
Commit
1623dc21
authored
Mar 27, 2002
by
Sebastien Barre
Browse files
ENH: add testdriver test with source file in subdir
parent
6d5bef7d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Source/CMakeLists.txt
View file @
1623dc21
...
...
@@ -137,18 +137,20 @@ IF(BUILD_TESTING)
TestDriverTest
${
CMake_BINARY_DIR
}
/Tests/Wrapping/bin
TestDriverTest test1
)
ADD_TEST
(
testdriver2
${
CMake_BINARY_DIR
}
/Source/cmaketest
${
CMake_SOURCE_DIR
}
/Tests/TestDriver
${
CMake_BINARY_DIR
}
/Tests/TestDriver
TestDriverTest
${
CMake_BINARY_DIR
}
/Tests/Wrapping/bin
TestDriverTest test2
)
ADD_TEST
(
testdriver3
${
CMake_BINARY_DIR
}
/Source/cmaketest
${
CMake_SOURCE_DIR
}
/Tests/TestDriver
${
CMake_BINARY_DIR
}
/Tests/TestDriver
TestDriverTest
${
CMake_BINARY_DIR
}
/Tests/Wrapping/bin
TestDriverTest test3
)
TestDriverTest
subdir/
test3
)
ENDIF
(
DART_ROOT
)
ENDIF
(
BUILD_TESTING
)
...
...
Tests/TestDriver/CMakeLists.txt
View file @
1623dc21
PROJECT
(
TestDriverTest
)
CREATE_TEST_SOURCELIST
(
testSrcs TestDriverTest test1 test2 test3
)
CREATE_TEST_SOURCELIST
(
testSrcs
TestDriverTest
test1
test2
subdir/test3
)
ADD_EXECUTABLE
(
TestDriverTest testSrcs
)
Tests/TestDriver/test3.cxx
→
Tests/TestDriver/
subdir/
test3.cxx
View file @
1623dc21
#include <stdio.h>
int
test3
(
int
ac
,
char
**
av
)
int
subdir_
test3
(
int
ac
,
char
**
av
)
{
printf
(
"test3
\n
"
);
for
(
int
i
=
0
;
i
<
ac
;
i
++
)
...
...
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