CMakeLists.txt 354 B

123456789101112
  1. project( LinkLine )
  2. # Makes sure that the library order as specified by the user are
  3. # unchanged by dependency analysis, etc. libOne and libTwo are
  4. # dependent on each other. The link line should be -lOne -lTwo -lOne.
  5. add_library( One One.c )
  6. add_library( Two Two.c )
  7. link_libraries( One Two )
  8. add_executable( LinkLine Exec.c )
  9. link_libraries( One )