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

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


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

int tlib8func()
{
  printf("This is T8\n");
  return 8;
}

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

add_executable(t9 t9.c)
target_link_libraries(t9 t7)

add_custom_target(t4_custom ALL)
add_dependencies(t4_custom t4)

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

extern int tlib7func();

#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 T9. This one should work.\n");

    if ( tlib7func() != 7 )
      {
      fprintf(stderr, "Something wrong with T7\n");
      return 1;
      }
    return 0;
    }




More information about the Cmake-commits mailing list