# prescribed in http://www.gentoo.org/proj/en/qa/automagic.xml
set (ENABLE_GUI "AUTO" CACHE STRING "Enable Qt GUI.")
+set (ENABLE_CLI true CACHE BOOL "Enable command Line interface.")
+
set (ENABLE_EGL "AUTO" CACHE STRING "Enable EGL support.")
find_package (PythonInterp REQUIRED)
find_package (OpenGL REQUIRED)
+find_package (Threads)
+
if (ENABLE_GUI)
if (NOT (ENABLE_GUI STREQUAL "AUTO"))
set (REQUIRE_GUI REQUIRED)
)
target_link_libraries (cgltrace
- pthread
+ ${CMAKE_THREAD_LIBS_INIT}
dl
)
target_link_libraries (glxtrace
${X11_X11_LIB}
- pthread
+ ${CMAKE_THREAD_LIBS_INIT}
dl
)
)
target_link_libraries (egltrace
- pthread
+ ${CMAKE_THREAD_LIBS_INIT}
dl
)
# gdb doesn't like when pthreads is loaded through dlopen (which happens
# when dlopen'ing libGL), so link pthreads to avoid this issue. See also
# http://stackoverflow.com/questions/2702628/gdb-cannot-find-new-threads-generic-error
- pthread
+ ${CMAKE_THREAD_LIBS_INIT}
dl
)
target_link_libraries (eglretrace
common
${X11_X11_LIB}
- pthread
+ ${CMAKE_THREAD_LIBS_INIT}
dl
)
##############################################################################
# CLI
-add_subdirectory(cli)
+if (ENABLE_CLI)
+ add_subdirectory(cli)
+endif ()
##############################################################################
# Scripts (to support the CLI)
LICENSE
NEWS.markdown
README.markdown
- TODO.markdown
DESTINATION ${DOC_INSTALL_DIR}
)