2008-03-25 18:27:18 +03:00
|
|
|
cmake_minimum_required (VERSION 2.6)
|
2012-08-13 21:47:32 +04:00
|
|
|
project( Dependency )
|
2002-05-01 22:00:21 +04:00
|
|
|
|
2004-11-02 00:57:05 +03:00
|
|
|
# to test directories with only one character One was changed to 1
|
2002-05-01 22:00:21 +04:00
|
|
|
# There is one executable that depends on eight libraries. The
|
|
|
|
# system has the following dependency graph:
|
|
|
|
#
|
|
|
|
# NoDepA:
|
|
|
|
# NoDepB: NoDepA
|
|
|
|
# NoDepC: NoDepA
|
2004-11-02 00:57:05 +03:00
|
|
|
# 1:
|
2002-05-01 22:00:21 +04:00
|
|
|
# Two: Three
|
2004-11-02 00:57:05 +03:00
|
|
|
# Three: 1 Four
|
|
|
|
# Four: 1 Two NoDepA
|
2002-05-01 22:00:21 +04:00
|
|
|
# Five: Two
|
2002-05-02 00:24:47 +04:00
|
|
|
# SixA: Two Five
|
|
|
|
# SixB: Four Five
|
2002-05-10 21:35:42 +04:00
|
|
|
# Seven: Two
|
|
|
|
# Eight: Seven
|
|
|
|
#
|
2002-05-02 00:24:47 +04:00
|
|
|
# Exec: NoDepB NoDepC SixA SixB
|
2002-05-10 21:35:42 +04:00
|
|
|
# Exec2: Eight Five
|
|
|
|
# Exec3: Eight Five
|
|
|
|
# Exec4: Five Two
|
2002-05-01 22:00:21 +04:00
|
|
|
#
|
2002-05-10 21:35:42 +04:00
|
|
|
# The libraries One,...,Eight have their dependencies explicitly
|
2002-05-01 22:00:21 +04:00
|
|
|
# encoded. The libraries NoDepA,...,NoDepC do not.
|
2002-05-02 00:24:47 +04:00
|
|
|
#
|
|
|
|
# Although SixB does not depend on Two, there is a dependency listed
|
|
|
|
# in the corresponding CMakeLists.txt just because of commands used.
|
2002-05-01 22:00:21 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
add_subdirectory(NoDepA)
|
|
|
|
add_subdirectory(NoDepB)
|
|
|
|
add_subdirectory(NoDepC)
|
|
|
|
add_subdirectory(1)
|
|
|
|
add_subdirectory(Two)
|
|
|
|
add_subdirectory(Three)
|
|
|
|
add_subdirectory(Four)
|
|
|
|
add_subdirectory(Five)
|
|
|
|
add_subdirectory(Six)
|
|
|
|
add_subdirectory(Seven)
|
|
|
|
add_subdirectory(Eight)
|
|
|
|
add_subdirectory(Exec)
|
|
|
|
add_subdirectory(Exec2)
|
|
|
|
add_subdirectory(Exec3)
|
|
|
|
add_subdirectory(Exec4)
|
2008-02-06 22:52:12 +03:00
|
|
|
|
|
|
|
# Specific cases added to test fixes to problems found in real
|
|
|
|
# projects.
|
2012-08-13 21:47:32 +04:00
|
|
|
add_subdirectory(Case1)
|
|
|
|
add_subdirectory(Case2)
|
|
|
|
add_subdirectory(Case3)
|
|
|
|
add_subdirectory(Case4)
|
2014-11-09 19:35:20 +03:00
|
|
|
add_subdirectory(Case5)
|