2002-10-29 23:46:38 +03:00
|
|
|
# a simple C only test case
|
2002-12-18 17:38:34 +03:00
|
|
|
PROJECT (UseX11 C)
|
2002-11-05 15:15:42 +03:00
|
|
|
|
2002-12-17 21:28:49 +03:00
|
|
|
INCLUDE (${CMAKE_ROOT}/Modules/FindX11.cmake)
|
2002-10-29 23:54:40 +03:00
|
|
|
|
2002-12-18 17:38:34 +03:00
|
|
|
ADD_EXECUTABLE (UseX11 X11.c)
|
2002-10-29 23:46:38 +03:00
|
|
|
|
2002-10-29 23:54:40 +03:00
|
|
|
IF(CMAKE_HAS_X)
|
2002-12-17 21:28:49 +03:00
|
|
|
ADD_DEFINITIONS(-DCMAKE_HAS_X)
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_X_INCLUDE_DIRS})
|
2002-12-18 17:38:34 +03:00
|
|
|
TARGET_LINK_LIBRARIES(UseX11 ${CMAKE_X_LIBS})
|
2002-10-29 23:46:38 +03:00
|
|
|
ENDIF(CMAKE_HAS_X)
|