[cmake-commits] andy committed CMakeLists.txt NONE 1.1 t1.c NONE 1.1 t2.c NONE 1.1 t3.c NONE 1.1 t4.c NONE 1.1 t5.c NONE 1.1

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Feb 22 08:39:14 EST 2007


Update of /cvsroot/CMake/CMake/Tests/SimpleExclude/dirC/dirA
In directory public:/mounts/ram/cvs-serv25050/SimpleExclude/dirC/dirA

Added Files:
	CMakeLists.txt t1.c t2.c t3.c t4.c t5.c 
Log Message:
ENH: Add simple exclusion test for subdirectories


--- NEW FILE: t4.c ---
#include <stdio.h>

#ifdef __CLASSIC_C__
int main()
{
  int ac;
  char*av[];
#else
  int main(int ac, char*av[])
    {
#endif
    if(ac > 1000){return *av[0];}
    printf("This is T4. This one should work.\n");
    return 0;
    }



--- NEW FILE: t2.c ---
#include <stdio.h>

int tlib2func()
{
  printf("This is T2\n");
  return 2;
}

--- NEW FILE: t3.c ---
#include <stdio.h>

int main(int argc, char* argv[])
{
  Should not be build unless target directory A, B, or C are build;
  return 0;
}

--- NEW FILE: CMakeLists.txt ---
add_library(t1 t1.c)

add_library(t2 t2.c)

add_executable(t3 t3.c)

add_executable(t4 t4.c)

add_executable(t5 t5.c)
target_link_libraries(t5 t1)

--- NEW FILE: t5.c ---
#include <stdio.h>

int main(int argc, char* argv[])
{
  Should not be build unless target directory A, B, or C are build;
  return 5;
}

--- NEW FILE: t1.c ---
#include <stdio.h>

int tlib1func()
{
  Should not be build unless target directory A, B, or C are build;
  printf("This is T1\n");
  return 5;
}



More information about the Cmake-commits mailing list