Add Windows code

This commit is contained in:
Andy Cedilnik 2002-10-29 15:54:40 -05:00
parent 2d9330fa1d
commit a43958f4f0
2 changed files with 15 additions and 1 deletions

View File

@ -5,7 +5,11 @@ INCLUDE (${CMAKE_ROOT}/Modules/FindX11.cmake)
IF(CMAKE_HAS_X)
INCLUDE_DIRECTORIES(${CMAKE_X_CFLAGS})
ADD_DEFINITIONS(-DCMAKE_HAS_X)
ENDIF(CMAKE_HAS_X)
ADD_EXECUTABLE (X11 X11.c)
IF(CMAKE_HAS_X)
TARGET_LINK_LIBRARIES(X11 ${CMAKE_X_LIBS})
ENDIF(CMAKE_HAS_X)

View File

@ -1,3 +1,5 @@
#ifdef CMAKE_HAS_X
#include <X11/Xlib.h>
#include <X11/Xutil.h>
@ -36,3 +38,11 @@ char **argv;
}
#else
int main()
{
return 0;
}
#endif