CMakeLists.txt 481 B

12345678910111213141516171819
  1. project(CASE1)
  2. # The old anaylize lib depends stuff in cmTarget gets this case wrong.
  3. # The cmComputeLinkDepends implementation gets it right.
  4. add_library(case1a STATIC a.c)
  5. add_library(case1b STATIC b.c b2.c)
  6. target_link_libraries(case1b case1a)
  7. add_library(case1c STATIC c.c c2.c)
  8. target_link_libraries(case1c case1b)
  9. add_library(case1d STATIC d.c)
  10. target_link_libraries(case1d case1c)
  11. add_executable(hello main.c)
  12. target_link_libraries(hello case1c case1b case1d case1c)