Commit 0223ba91 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: add test for set to create source lists

parent fc6b8e8b
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})
#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]);
......
int testExtraStuff()
{
return 1;
}
int testExtraStuff2()
{
return 1;
}
int testExtraStuff3()
{
return 1;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment