diff options
Diffstat (limited to 'Tests/Dependency/CMakeLists.txt')
-rw-r--r-- | Tests/Dependency/CMakeLists.txt | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Tests/Dependency/CMakeLists.txt b/Tests/Dependency/CMakeLists.txt new file mode 100644 index 0000000..81365d1 --- /dev/null +++ b/Tests/Dependency/CMakeLists.txt @@ -0,0 +1,38 @@ +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 <---+ +# | +# ^ ^ | +# | | | +# +--------- Three <-------+ +# +# NoDepA: +# NoDepB: NoDepA +# NoDepC: NoDepA +# One: +# Two: Three +# Three: One Four +# Four: One Two A +# Five: Two +# Exec: NoDepB NoDepC Five +# +# The libraries One,...,Five have their dependencies explicitly +# encoded. The libraries NoDepA,...,NoDepC do not. + +SUBDIRS( NoDepA NoDepB NoDepC ) +SUBDIRS( One Two Three Four Five ) +SUBDIRS( Exec ) |