CMake/Tests/X11/X11.c

22 lines
235 B
C
Raw Normal View History

2002-11-06 08:52:25 -05:00
#include "stdio.h"
2002-10-29 15:54:40 -05:00
#ifdef CMAKE_HAS_X
2002-10-29 15:46:38 -05:00
#include <X11/Xlib.h>
#include <X11/Xutil.h>
2002-11-05 07:06:00 -05:00
int main()
2002-10-29 15:46:38 -05:00
{
2002-11-06 08:52:25 -05:00
printf("There is X on this computer\n");
2002-11-05 07:06:00 -05:00
return 0;
2002-10-29 15:46:38 -05:00
}
2002-10-29 15:54:40 -05:00
#else
int main()
{
2002-10-29 15:58:35 -05:00
printf("No X on this computer\n");
2002-10-29 15:54:40 -05:00
return 0;
}
#endif