CMakeLists.txt 538 B

123456789101112131415
  1. cmake_minimum_required (VERSION 2.6)
  2. PROJECT(TestDriverTest)
  3. SET(Extra_SRCS testExtraStuff.cxx testExtraStuff2.cxx )
  4. SET(Extra_SRCS ${Extra_SRCS};testExtraStuff3.cxx )
  5. INCLUDE_DIRECTORIES(${TestDriverTest_SOURCE_DIR})
  6. CREATE_TEST_SOURCELIST(testSrcs
  7. TestDriverTest.cxx
  8. test1.cxx
  9. test2.cxx
  10. subdir/test3.cxx
  11. EXTRA_INCLUDE testArgs.h FUNCTION testProccessArgs)
  12. ADD_EXECUTABLE(TestDriverTest ${testSrcs} ${Extra_SRCS})