[cmake-commits] king committed CMakeLists.txt NONE 1.1 a.c NONE 1.1 b.c NONE 1.1 b2.c NONE 1.1 c.c NONE 1.1 c2.c NONE 1.1 d.c NONE 1.1 main.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/Case1
In directory public:/mounts/ram/cvs-serv22831/Tests/Dependency/Case1

Added Files:
	CMakeLists.txt a.c b.c b2.c c.c c2.c d.c main.c 
Log Message:
ENH: Combine all dependency* tests into one Dependency test.  Add more difficult test cases.


--- NEW FILE: d.c ---
extern int c2();

int d()
{
   return c2()+2;
}


--- NEW FILE: a.c ---
int a()
{
   return 5;
}


--- NEW FILE: b2.c ---
int b2()
{
   return 3;
}

--- NEW FILE: CMakeLists.txt ---
project(CASE1)

# The old anaylize lib depends stuff in cmTarget gets this case wrong.
# The cmComputeLinkDepends implementation gets it right.

add_library(case1a STATIC a.c)

add_library(case1b STATIC b.c b2.c)
target_link_libraries(case1b case1a)

add_library(case1c STATIC c.c c2.c)
target_link_libraries(case1c case1b)

add_library(case1d STATIC d.c)
target_link_libraries(case1d case1c)

add_executable(hello main.c)
target_link_libraries(hello case1c case1b case1d case1c)


--- NEW FILE: c.c ---
extern int b();

int c()
{
   return b()+42;
}

--- NEW FILE: b.c ---
extern int a();

int b()
{
   return a()+17;
}

--- NEW FILE: c2.c ---
extern int b2();

int c2()
{
  return b2()+1;
}

--- NEW FILE: main.c ---
extern int b();
extern int c();
extern int d();

int main()
{
   c();
   b();
   d();
}



More information about the Cmake-commits mailing list