https://github.com/Kitware/CMake
Raw File
Tip revision: 31f835410efeea50acd43512eb9e5646a26ea177 authored by Brad King on 13 September 2022, 13:53:22 UTC
CMake 3.24.2
Tip revision: 31f8354
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