]> git.cworth.org Git - apitrace/blobdiff - CMakeLists.txt
Ok, when != -1
[apitrace] / CMakeLists.txt
index fffebf01582752b9a2d7de9302e5cb77d61876cb..64e63bf1d9192df95a8eeb700b20d61e6ba957b0 100755 (executable)
@@ -11,7 +11,7 @@ project (apitrace)
 # still providing a mechanism to force/disable these optional dependencies, as
 # prescribed in http://www.gentoo.org/proj/en/qa/automagic.xml
 
-set (ENABLE_GUI "AUTO" CACHE STRING "Enable QT GUI.")
+set (ENABLE_GUI "AUTO" CACHE STRING "Enable Qt GUI.")
 
 
 ##############################################################################
@@ -23,6 +23,7 @@ set (CMAKE_USE_PYTHON_VERSION 2.7 2.6)
 
 find_package (PythonInterp REQUIRED)
 find_package (OpenGL REQUIRED)
+find_package (Snappy REQUIRED)
 
 if (ENABLE_GUI)
     if (NOT (ENABLE_GUI STREQUAL "AUTO"))
@@ -140,6 +141,8 @@ add_subdirectory (thirdparty/zlib EXCLUDE_FROM_ALL)
 include_directories (${ZLIB_INCLUDE_DIRS})
 link_libraries (${ZLIB_LIBRARIES})
 
+link_libraries(${SNAPPY_LIBRARIES})
+
 set (PNG_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/libpng)
 set (PNG_DEFINITIONS "")
 set (PNG_LIBRARIES png_bundled)
@@ -173,6 +176,7 @@ else (WIN32)
 endif (WIN32)
 
 add_library (common
+    trace_file.cpp
     trace_model.cpp
     trace_parser.cpp
     trace_writer.cpp
@@ -338,7 +342,7 @@ else ()
     )
 
     target_link_libraries (glxtrace dl ${X11_X11_LIB})
-    
+
     install (TARGETS glxtrace LIBRARY DESTINATION lib)
 endif ()