1 2 3 4 5 6 7 8 9 10 11 12 13
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 ${Extra_SRCS})