mirror of
https://github.com/reactos/CMake.git
synced 2024-12-21 03:00:59 +00:00
4bff970413
- test case for above mentioned bug - more comments. Comments are good.
44 lines
1.7 KiB
CMake
44 lines
1.7 KiB
CMake
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 )
|