CMakeLists.txt 482 B

12345678910111213141516
  1. PROJECT(SUBDIR)
  2. SUBDIRS(Executable EXCLUDE_FROM_ALL Examples)
  3. WRITE_FILE(${SUBDIR_BINARY_DIR}/ShouldBeHere "This file should exist.")
  4. ADD_EXECUTABLE(TestFromSubdir
  5. AnotherSubdir/testfromsubdir.c
  6. AnotherSubdir/secondone
  7. AnotherSubdir/pair+int.int.c
  8. vcl_algorithm+vcl_pair+double.foo.c
  9. )
  10. AUX_SOURCE_DIRECTORY(ThirdSubDir SOURCES)
  11. SET(SOURCES ${SOURCES}
  12. vcl_algorithm+vcl_pair+double.foo.c)
  13. MESSAGE("Sources: ${SOURCES}")
  14. ADD_EXECUTABLE(TestWithAuxSourceDir ${SOURCES})