summaryrefslogtreecommitdiffstats
path: root/Tests/X11/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/X11/CMakeLists.txt')
-rw-r--r--Tests/X11/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/X11/CMakeLists.txt b/Tests/X11/CMakeLists.txt
index d97b4fb..bc2294e 100644
--- a/Tests/X11/CMakeLists.txt
+++ b/Tests/X11/CMakeLists.txt
@@ -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)
- ADD_EXECUTABLE (X11 X11.c)
+IF(CMAKE_HAS_X)
TARGET_LINK_LIBRARIES(X11 ${CMAKE_X_LIBS})
ENDIF(CMAKE_HAS_X)