swh:1:snp:3cba5856b0ddc3feab6c3c2d096d614b02c883ec
Raw File
Tip revision: 63d21c1f8efeb2f2337221119c479d75bbb0b7c0 authored by David Cole on 03 November 2010, 17:38:38 UTC
CMake 2.8.3
Tip revision: 63d21c1
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