CMakeLists.txt 1.3 KB

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