https://github.com/Kitware/CMake
Raw File
Tip revision: 43ddc6403227cc749916d47dd9f6c634f1aa4cc1 authored by Brad King on 15 September 2020, 12:11:59 UTC
CMake 3.16.9
Tip revision: 43ddc64
X11.c
#include "stdio.h"
#ifdef CMAKE_HAS_X

#  include <X11/Xlib.h>
#  include <X11/Xutil.h>

int main()
{
  printf("There is X on this computer\n");
  return 0;
}

#else

int main()
{
  printf("No X on this computer\n");
  return 0;
}

#endif
back to top