find_package (PythonInterp REQUIRED)
find_package (OpenGL REQUIRED)
-find_package (Qt4 COMPONENTS QtCore QtGui QtWebKit)
+find_package (Qt4 4.7 COMPONENTS QtCore QtGui QtWebKit)
find_package (QJSON)
if (NOT WIN32)
add_library (glxtrace SHARED glxtrace.cpp trace_write.cpp os_posix.cpp ${CMAKE_CURRENT_BINARY_DIR}/glproc.hpp)
set_target_properties (glxtrace PROPERTIES
+ # avoid the default "lib" prefix
PREFIX ""
)
+ # Prevent symbol relocations internal to our wrapper library to be
+ # overwritten by the application.
+ if (NOT APPLE)
+ set_target_properties (glxtrace PROPERTIES
+ LINK_FLAGS "-Wl,-Bsymbolic -Wl,-Bsymbolic-functions"
+ )
+ endif (NOT APPLE)
+
target_link_libraries (glxtrace dl)
endif ()