From 66d304c0ce0e93144b69a537252a60eb6b757759 Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Sun, 10 Apr 2011 11:13:26 +0100 Subject: [PATCH] Link against X11 libraries. --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 506325e..8fb356e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,7 @@ if (NOT WIN32) # to deploy the wrappers DLLs find_package (ZLIB) find_package (PNG) + find_package (X11 REQUIRED) else (NOT WIN32) find_package (DirectX) endif (NOT WIN32) @@ -177,6 +178,7 @@ if (WIN32) endif (MINGW) else () + include_directories (${X11_INCLUDE_DIR}) # libGL.so add_custom_command ( @@ -237,8 +239,13 @@ target_link_libraries (glretrace trace ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} + ${X11_LIBRARIES} ) +if (NOT WIN32) + target_link_libraries (glretrace ${X11_LIBRARIES}) +endif (NOT WIN32) + if (QT4_FOUND AND QJSON_FOUND) add_subdirectory(gui) endif (QT4_FOUND AND QJSON_FOUND) -- 2.45.2