mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
14 lines
391 B
CMake
14 lines
391 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
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 )
|