https://github.com/Kitware/CMake
Raw File
Tip revision: f7cf69e34a1607e8ea2b6d10fef6a6058377c24e authored by Brad King on 27 July 2021, 13:29:13 UTC
CMake 3.21.1
Tip revision: f7cf69e
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