2002-10-29 23:46:38 +03:00
|
|
|
# a simple C only test case
|
|
|
|
PROJECT (X11 C)
|
|
|
|
|
|
|
|
INCLUDE (${CMAKE_ROOT}/Modules/FindX11.cmake)
|
|
|
|
|
|
|
|
IF(CMAKE_HAS_X)
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_X_CFLAGS})
|
2002-10-29 23:54:40 +03:00
|
|
|
ADD_DEFINITIONS(-DCMAKE_HAS_X)
|
|
|
|
ENDIF(CMAKE_HAS_X)
|
|
|
|
|
|
|
|
ADD_EXECUTABLE (X11 X11.c)
|
2002-10-29 23:46:38 +03:00
|
|
|
|
2002-10-29 23:54:40 +03:00
|
|
|
IF(CMAKE_HAS_X)
|
2002-10-29 23:46:38 +03:00
|
|
|
TARGET_LINK_LIBRARIES(X11 ${CMAKE_X_LIBS})
|
|
|
|
ENDIF(CMAKE_HAS_X)
|