[cmake-commits] andy committed CMakeLists.txt NONE 1.1 t6.c NONE 1.1 t7.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/dirB
In directory public:/mounts/ram/cvs-serv25050/SimpleExclude/dirC/dirB

Added Files:
	CMakeLists.txt t6.c t7.c 
Log Message:
ENH: Add simple exclusion test for subdirectories


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

extern int tlib2func();

int tlib7func()
{
  printf("This is T7\n");

  if ( tlib2func() != 2 )
    {
    fprintf(stderr, "Something wrong with T2\n");
    return 1;
    }

  return 7;
}

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

add_library(t7 t7.c)
target_link_libraries(t7 t2)


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

int tlib6func()
{
  Should not be build unless target directory B, or C are build;
  printf("This is T6\n");
  return 6;
}



More information about the Cmake-commits mailing list