blob: 760def1e3b0c0776d35c98ce7a739fdaa1dd452d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# a simple C only test case
PROJECT (UseX11 C)
INCLUDE (${CMAKE_ROOT}/Modules/FindX11.cmake)
ADD_EXECUTABLE (UseX11 X11.c)
IF(CMAKE_HAS_X)
ADD_DEFINITIONS(-DCMAKE_HAS_X)
INCLUDE_DIRECTORIES(${X11_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(UseX11 ${CMAKE_X_LIBS})
ENDIF(CMAKE_HAS_X)
|