CMake/Tests/LoadCommandOneConfig/LoadedCommand.cxx

31 lines
534 B
C++

#include "LoadedCommand.h"
#include <stdio.h>
int main ()
{
#ifdef HAVE_VSBLABLA
printf("Should not be able to find vsblabla\n");
return 1;
#endif
#if !defined( HAVE_PRINTF )
printf("Should be able to find printf\n");
return 1;
#endif
#if !defined( ADDED_DEFINITION )
printf("Should have ADDED_DEFINITION defined\n");
return 1;
#endif
if(SIZEOF_CHAR != 1)
{
printf("Size of char is not one, something is broken\n");
}
#ifdef CMAKE_IS_FUN
return SIZEOF_CHAR-1;
#else
return SIZEOF_SHORT;
#endif
}