From: Zack Rusin Date: Sun, 10 Apr 2011 10:13:26 +0000 (+0100) Subject: Link against X11 libraries. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=66d304c0ce0e93144b69a537252a60eb6b757759;p=apitrace Link against X11 libraries. --- 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)