swh:1:snp:3cba5856b0ddc3feab6c3c2d096d614b02c883ec
Raw File
Tip revision: 83e207a54e158972e4beeb36439daa5e80744d24 authored by Brad King on 10 November 2017, 12:37:49 UTC
CMake 3.9.6
Tip revision: 83e207a
CMakeLists.txt
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 )
back to top