[cmake-commits] king committed CMakeLists.txt NONE 1.1 bar1.c NONE
1.1 bar2.c NONE 1.1 bar3.c NONE 1.1 foo1.c NONE 1.1 foo2.c NONE
1.1 foo3.c NONE 1.1 zot.c NONE 1.1
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Feb 6 14:52:14 EST 2008
Update of /cvsroot/CMake/CMake/Tests/Dependency/Case2
In directory public:/mounts/ram/cvs-serv22831/Tests/Dependency/Case2
Added Files:
CMakeLists.txt bar1.c bar2.c bar3.c foo1.c foo2.c foo3.c zot.c
Log Message:
ENH: Combine all dependency* tests into one Dependency test. Add more difficult test cases.
--- NEW FILE: bar1.c ---
extern int foo1();
extern int bar2(void);
int bar1(void) { return bar2(); }
int bar1_from_bar3(void) { return foo1(); }
--- NEW FILE: foo2.c ---
extern int foo3(void);
int foo2(void) { return foo3(); }
--- NEW FILE: zot.c ---
extern int bar1(void);
int main(void)
{
return bar1();
}
--- NEW FILE: foo1.c ---
extern int foo2(void);
int foo1(void) { return foo2(); }
int foo1_from_foo3(void) { return 0; }
--- NEW FILE: bar3.c ---
extern int bar1_from_bar3(void);
int bar3(void) { return bar1_from_bar3(); }
--- NEW FILE: bar2.c ---
extern int bar3(void);
int bar2(void) { return bar3(); }
--- NEW FILE: foo3.c ---
extern int foo1_from_foo3(void);
int foo3(void) { return foo1_from_foo3(); }
--- NEW FILE: CMakeLists.txt ---
project(CASE2 C)
add_library(case2Foo1 STATIC foo1.c)
add_library(case2Foo2 STATIC foo2.c)
add_library(case2Foo3 STATIC foo3.c)
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)
More information about the Cmake-commits
mailing list