mirror of
https://github.com/reactos/CMake.git
synced 2024-12-20 18:48:14 +00:00
77543bde41
Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code: cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | xargs -0 sed -i -f convert.sed && rm convert.sed
54 lines
1.3 KiB
CMake
54 lines
1.3 KiB
CMake
cmake_minimum_required (VERSION 2.6)
|
|
project( Dependency )
|
|
|
|
# to test directories with only one character One was changed to 1
|
|
# There is one executable that depends on eight libraries. The
|
|
# system has the following dependency graph:
|
|
#
|
|
# NoDepA:
|
|
# NoDepB: NoDepA
|
|
# NoDepC: NoDepA
|
|
# 1:
|
|
# Two: Three
|
|
# Three: 1 Four
|
|
# Four: 1 Two NoDepA
|
|
# Five: Two
|
|
# SixA: Two Five
|
|
# SixB: Four Five
|
|
# Seven: Two
|
|
# Eight: Seven
|
|
#
|
|
# Exec: NoDepB NoDepC SixA SixB
|
|
# Exec2: Eight Five
|
|
# Exec3: Eight Five
|
|
# Exec4: Five Two
|
|
#
|
|
# The libraries One,...,Eight 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.
|
|
|
|
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)
|
|
|
|
# Specific cases added to test fixes to problems found in real
|
|
# projects.
|
|
add_subdirectory(Case1)
|
|
add_subdirectory(Case2)
|
|
add_subdirectory(Case3)
|
|
add_subdirectory(Case4)
|