2008-02-06 22:52:12 +03:00
|
|
|
project(CASE2 C)
|
|
|
|
|
2008-02-08 00:14:17 +03:00
|
|
|
add_library(case2Foo1 STATIC foo1.c foo1b.c)
|
|
|
|
add_library(case2Foo2 STATIC foo2.c foo2b.c)
|
|
|
|
add_library(case2Foo3 STATIC foo3.c foo3b.c)
|
2008-02-06 22:52:12 +03:00
|
|
|
target_link_libraries(case2Foo1 case2Foo2)
|
|
|
|
target_link_libraries(case2Foo2 case2Foo3)
|
|
|
|
target_link_libraries(case2Foo3 case2Foo1)
|
|
|
|
|
|
|
|
add_library(case2Bar1 STATIC bar1.c)
|
|
|
|
add_library(case2Bar2 STATIC bar2.c)
|
|
|
|
add_library(case2Bar3 STATIC bar3.c)
|
|
|
|
target_link_libraries(case2Bar1 case2Bar2 case2Foo1)
|
|
|
|
target_link_libraries(case2Bar2 case2Bar3)
|
|
|
|
target_link_libraries(case2Bar3 case2Bar1)
|
|
|
|
|
|
|
|
add_executable(case2Zot zot.c)
|
|
|
|
target_link_libraries(case2Zot case2Bar1)
|
|
|
|
|
|
|
|
#set_property(GLOBAL PROPERTY GLOBAL_DEPENDS_DEBUG_MODE 1)
|
2008-02-08 00:14:17 +03:00
|
|
|
#set(CMAKE_LINK_DEPENDS_DEBUG_MODE 1)
|