summaryrefslogtreecommitdiffstats
path: root/Tests/X11/CMakeLists.txt
blob: 9dc1e46ea5c5563ac0aaede60b58b13d33143cff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# a simple C only test case
PROJECT (UseX11 C)

INCLUDE (${CMAKE_ROOT}/Modules/FindX11.cmake)
MESSAGE("X11_FOUND: ${X11_FOUND}")

ADD_EXECUTABLE (UseX11 X11.c)

IF(X11_FOUND)
  ADD_DEFINITIONS(-DCMAKE_HAS_X)
  INCLUDE_DIRECTORIES(${X11_INCLUDE_DIR})
  TARGET_LINK_LIBRARIES(UseX11 ${X11_LIBRARIES})
ENDIF(X11_FOUND)