summaryrefslogtreecommitdiffstats
path: root/Tests/Dependency/CMakeLists.txt
blob: b7debc683369361f991170d17fc84cb30ce5cdc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
PROJECT( Dependency )

# There is one executable that depends on eight libraries. The
# system has the following dependency graph:
#
#                    +----------- NoDepC  <----  EXECUTABLE ---+
#                    |                            |    |       |
#                    V                            |    |       |
#                                                 |    |       |
#                  NoDepA  <----- NoDepB  <-------+    |       |
#                                                      |       |
#                    ^                                 |       V
#                    |                                 |
#      One  <------ Four ----->  Two  <----- Five  <---|----- SixB
#                                |                     |       |
#       ^           ^  ^         |  ^         ^        |       |
#       |           |  +-----+   |   \        |        |       |
#       |           |        |   |    \       |        |       |
#       +--------- Three  <------+      --- SixA  <----+       |
#                            |                                 |
#                            |                                 |
#                            +---------------------------------+
# NoDepA:
# NoDepB: NoDepA
# NoDepC: NoDepA
# One:
# Two: Three
# Three: One Four
# Four: One Two NoDepA
# Five: Two
# SixA: Two Five
# SixB: Four Five
# Exec: NoDepB NoDepC SixA SixB
#
# The libraries One,...,Five have their dependencies explicitly
# encoded. The libraries NoDepA,...,NoDepC do not.
#
# Although SixB does not depend on Two, there is a dependency listed
# in the corresponding CMakeLists.txt just because of commands used.

SUBDIRS( NoDepA NoDepB NoDepC )
SUBDIRS( One Two Three Four Five Six )
SUBDIRS( Exec )