blob: 6154dd46941f6f1967cc64f250258563778b509d (
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 )
|