summaryrefslogtreecommitdiffstats
path: root/Tests/LinkLine/CMakeLists.txt
blob: c8f0ecf633b9b83c2e1b35a27d60bbaf6871d4ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
PROJECT( LinkLine )

# Makes sure that the library order as specified by the user are
# unchanged by dependency analysis, etc.  libOne and libTwo are
# dependent on each other. The link line should be -lOne -lTwo -lOne.

ADD_LIBRARY( One One.c )
ADD_LIBRARY( Two Two.c )

LINK_LIBRARIES( One Two )
ADD_EXECUTABLE( LinkLine Exec.c )
LINK_LIBRARIES( One )