2002-05-01 22:00:21 +04:00
|
|
|
PROJECT( Dependency )
|
|
|
|
|
|
|
|
SET( LIBRARY_OUTPUT_PATH ${Dependency_BINARY_DIR}/Lib )
|
|
|
|
SET( CMAKE_ANALYZE_LIB_DEPENDS "ON" )
|
|
|
|
|
|
|
|
# There is one executable that depends on eight libraries. The
|
|
|
|
# system has the following dependency graph:
|
|
|
|
#
|
|
|
|
# +----------- NoDepC <---- EXECUTABLE
|
|
|
|
# | | |
|
|
|
|
# V | |
|
|
|
|
# | |
|
|
|
|
# NoDepA <----- NoDepB <-------+ |
|
|
|
|
# |
|
|
|
|
# ^ |
|
|
|
|
# | |
|
|
|
|
# One <------ Four -----> Two <----- Five <---+
|
2002-05-02 00:24:47 +04:00
|
|
|
# |
|
|
|
|
# ^ ^ ^ | ^ ^ ^
|
|
|
|
# | | +-----+ | | | +----+
|
|
|
|
# | | | | | | |
|
|
|
|
# +--------- Three <------+ +------- SixA SixB
|
|
|
|
# | |
|
|
|
|
# +-----------------------+
|
2002-05-01 22:00:21 +04:00
|
|
|
# NoDepA:
|
|
|
|
# NoDepB: NoDepA
|
|
|
|
# NoDepC: NoDepA
|
|
|
|
# One:
|
|
|
|
# Two: Three
|
|
|
|
# Three: One Four
|
2002-05-02 00:33:27 +04:00
|
|
|
# Four: One 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
|
|
|
|
# Exec: NoDepB NoDepC SixA SixB
|
2002-05-01 22:00:21 +04:00
|
|
|
#
|
|
|
|
# The libraries One,...,Five have their dependencies explicitly
|
|
|
|
# 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
|
|
|
|
|
|
|
SUBDIRS( NoDepA NoDepB NoDepC )
|
2002-05-02 00:24:47 +04:00
|
|
|
SUBDIRS( One Two Three Four Five Six )
|
2002-05-01 22:00:21 +04:00
|
|
|
SUBDIRS( Exec )
|