CMake/Tests/X11/CMakeLists.txt

14 lines
316 B
CMake
Raw Normal View History

2002-10-29 23:46:38 +03:00
# a simple C only test case
PROJECT (UseX11 C)
2002-11-05 15:15:42 +03:00
INCLUDE (${CMAKE_ROOT}/Modules/FindX11.cmake)
MESSAGE("X11_FOUND: ${X11_FOUND}")
2002-10-29 23:54:40 +03:00
ADD_EXECUTABLE (UseX11 X11.c)
2002-10-29 23:46:38 +03:00
IF(X11_FOUND)
ADD_DEFINITIONS(-DCMAKE_HAS_X)
2003-01-08 19:53:55 +03:00
INCLUDE_DIRECTORIES(${X11_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(UseX11 ${X11_LIBRARIES})
ENDIF(X11_FOUND)