2002-05-10 21:35:42 +04:00
|
|
|
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 )
|
2007-05-18 23:11:20 +04:00
|
|
|
ADD_EXECUTABLE( LinkLine Exec.c )
|
2002-05-10 21:35:42 +04:00
|
|
|
LINK_LIBRARIES( One )
|