X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=CMakeLists.txt;h=e840f21d193608b386d33edf84f72ea3511e1ea9;hb=35c2793ac758997a0a1c2e558d384ab94754987d;hp=4dfbbb73251005844782bd86a4812da9eb3383d4;hpb=52f0c2507638fb623088c9def5b2cc0bf652478e;p=apitrace diff --git a/CMakeLists.txt b/CMakeLists.txt index 4dfbbb7..e840f21 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -140,6 +140,13 @@ add_subdirectory (thirdparty/zlib EXCLUDE_FROM_ALL) include_directories (${ZLIB_INCLUDE_DIRS}) link_libraries (${ZLIB_LIBRARIES}) +set (SNAPPY_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/snappy) +set (SNAPPY_LIBRARIES snappy_bundled) +add_subdirectory (thirdparty/snappy EXCLUDE_FROM_ALL) + +include_directories (${SNAPPY_INCLUDE_DIRS}) +link_libraries (${SNAPPY_LIBRARIES}) + set (PNG_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/libpng) set (PNG_DEFINITIONS "") set (PNG_LIBRARIES png_bundled) @@ -173,6 +180,8 @@ else (WIN32) endif (WIN32) add_library (common + trace_file.cpp + trace_snappyfile.cpp trace_model.cpp trace_parser.cpp trace_writer.cpp @@ -339,7 +348,7 @@ else () ) target_link_libraries (glxtrace dl ${X11_X11_LIB}) - + install (TARGETS glxtrace LIBRARY DESTINATION lib) endif ()