2013-03-16 19:13:01 +02:00
|
|
|
project( LinkLine )
|
2008-10-12 18:41:06 +02:00
|
|
|
|
|
|
|
# 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.
|
|
|
|
|
2013-03-16 19:13:01 +02:00
|
|
|
add_library( One One.c )
|
|
|
|
add_library( Two Two.c )
|
2008-10-12 18:41:06 +02:00
|
|
|
|
2013-03-16 19:13:01 +02:00
|
|
|
link_libraries( One Two )
|
|
|
|
add_executable( LinkLine Exec.c )
|
|
|
|
link_libraries( One )
|