https://github.com/Kitware/CMake
Raw File
Tip revision: 5755d59167192fa1e4a25fefba8239b8673855b1 authored by Bill Hoffman on 01 August 2008, 15:03:41 UTC
ENH: final 2.6.1
Tip revision: 5755d59
foo.in
#include "doc1.h"
#include "foo.h"
#include "config.h"

#include <stdio.h>

int generated();
int wrapped();

int main ()
{
  if (generated()*wrapped()*doc() == 3*5*7)
    {
    FILE* fin = fopen(PROJECT_BINARY_DIR "/not_included.h", "r");
    if(fin)
      {
      fclose(fin);
      return 0;
      }
    else
      {
      return -2;
      }
    }
  
  return -1;
}

back to top