+if (WIN32 OR APPLE OR X11_FOUND)
+ add_executable (glretrace
+ ${glws_os}
+ glproc_gl.cpp
+ )
+
+ add_dependencies (glretrace glproc)
+
+ set_property (
+ TARGET glretrace
+ APPEND
+ PROPERTY COMPILE_DEFINITIONS "RETRACE"
+ )
+
+ target_link_libraries (glretrace
+ retrace_common
+ common
+ ${PNG_LIBRARIES}
+ ${ZLIB_LIBRARIES}
+ ${SNAPPY_LIBRARIES}
+ )
+
+ if (WIN32)
+ else ()
+ if (APPLE)
+ target_link_libraries (glretrace
+ "-framework Cocoa"
+ "-framework ApplicationServices" # CGS*
+ #"-framework OpenGL" # CGL*
+ )
+ else ()
+ target_link_libraries (glretrace ${X11_X11_LIB})
+ endif ()