CMakeLists.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. cmake_minimum_required (VERSION 2.6)
  2. project( Dependency )
  3. # to test directories with only one character One was changed to 1
  4. # There is one executable that depends on eight libraries. The
  5. # system has the following dependency graph:
  6. #
  7. # NoDepA:
  8. # NoDepB: NoDepA
  9. # NoDepC: NoDepA
  10. # 1:
  11. # Two: Three
  12. # Three: 1 Four
  13. # Four: 1 Two NoDepA
  14. # Five: Two
  15. # SixA: Two Five
  16. # SixB: Four Five
  17. # Seven: Two
  18. # Eight: Seven
  19. #
  20. # Exec: NoDepB NoDepC SixA SixB
  21. # Exec2: Eight Five
  22. # Exec3: Eight Five
  23. # Exec4: Five Two
  24. #
  25. # The libraries One,...,Eight have their dependencies explicitly
  26. # encoded. The libraries NoDepA,...,NoDepC do not.
  27. #
  28. # Although SixB does not depend on Two, there is a dependency listed
  29. # in the corresponding CMakeLists.txt just because of commands used.
  30. add_subdirectory(NoDepA)
  31. add_subdirectory(NoDepB)
  32. add_subdirectory(NoDepC)
  33. add_subdirectory(1)
  34. add_subdirectory(Two)
  35. add_subdirectory(Three)
  36. add_subdirectory(Four)
  37. add_subdirectory(Five)
  38. add_subdirectory(Six)
  39. add_subdirectory(Seven)
  40. add_subdirectory(Eight)
  41. add_subdirectory(Exec)
  42. add_subdirectory(Exec2)
  43. add_subdirectory(Exec3)
  44. add_subdirectory(Exec4)
  45. # Specific cases added to test fixes to problems found in real
  46. # projects.
  47. add_subdirectory(Case1)
  48. add_subdirectory(Case2)
  49. add_subdirectory(Case3)
  50. add_subdirectory(Case4)
  51. add_subdirectory(Case5)