diff options
author | Amitha Perera <perera@cs.rpi.edu> | 2002-05-01 20:24:47 (GMT) |
---|---|---|
committer | Amitha Perera <perera@cs.rpi.edu> | 2002-05-01 20:24:47 (GMT) |
commit | 36f80fe6c8f7593462c450789b01f4eb37792996 (patch) | |
tree | 4c7a81e81780aa96ad9b485269e5af743bf785e2 /Tests/Dependency/Six | |
parent | 1f8df8585ef36aa980d13a0cb6646de399bceff9 (diff) | |
download | CMake-36f80fe6c8f7593462c450789b01f4eb37792996.zip CMake-36f80fe6c8f7593462c450789b01f4eb37792996.tar.gz CMake-36f80fe6c8f7593462c450789b01f4eb37792996.tar.bz2 |
ENH: Make the LinkLibraries command contribute dependencies towards AddLibraries.
Diffstat (limited to 'Tests/Dependency/Six')
-rw-r--r-- | Tests/Dependency/Six/CMakeLists.txt | 12 | ||||
-rw-r--r-- | Tests/Dependency/Six/SixASrc.c | 8 | ||||
-rw-r--r-- | Tests/Dependency/Six/SixBSrc.c | 10 |
3 files changed, 30 insertions, 0 deletions
diff --git a/Tests/Dependency/Six/CMakeLists.txt b/Tests/Dependency/Six/CMakeLists.txt new file mode 100644 index 0000000..2cb1586 --- /dev/null +++ b/Tests/Dependency/Six/CMakeLists.txt @@ -0,0 +1,12 @@ +# In some projects, people don't use TARGET_LINK_LIBRARIES, but just +# use an all-encompassing LINK_LIBRARIES. And sometimes they don't +# specify them in the correct order. + +LINK_LIBRARIES( Two ) + +ADD_LIBRARY( SixA SixASrc.c ) + +ADD_LIBRARY( SixB SixBSrc.c ) +TARGET_LINK_LIBRARIES( SixB Four ) + +LINK_LIBRARIES( Five ) diff --git a/Tests/Dependency/Six/SixASrc.c b/Tests/Dependency/Six/SixASrc.c new file mode 100644 index 0000000..7ea3711 --- /dev/null +++ b/Tests/Dependency/Six/SixASrc.c @@ -0,0 +1,8 @@ +void FiveFunction(); +void TwoFunction(); + +void SixAFunction() +{ + FiveFunction(); + TwoFunction(); +} diff --git a/Tests/Dependency/Six/SixBSrc.c b/Tests/Dependency/Six/SixBSrc.c new file mode 100644 index 0000000..92f9607 --- /dev/null +++ b/Tests/Dependency/Six/SixBSrc.c @@ -0,0 +1,10 @@ +void TwoFunction(); +void FiveFunction(); +void FourFunction(); + +void SixBFunction() +{ + TwoFunction(); + FiveFunction(); + FourFunction(); +} |