X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=CMakeLists.txt;h=2ee433a51dd1814eb0f518f22139c0fba416b351;hb=851d0b0452234ace66a511327bd8e6f9d68fe9e9;hp=fffebf01582752b9a2d7de9302e5cb77d61876cb;hpb=b1ead23eb0f2e568c0f550dbf3f04dd28eb9ea7a;p=apitrace diff --git a/CMakeLists.txt b/CMakeLists.txt index fffebf0..2ee433a 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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.") ############################################################################## @@ -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,10 +180,14 @@ else (WIN32) endif (WIN32) add_library (common + trace_file.cpp + trace_snappyfile.cpp trace_model.cpp trace_parser.cpp trace_writer.cpp + trace_local_writer.cpp trace_model_writer.cpp + trace_loader.cpp image.cpp image_bmp.cpp image_pnm.cpp @@ -194,6 +205,8 @@ link_libraries (common) add_executable (tracedump tracedump.cpp) install (TARGETS tracedump RUNTIME DESTINATION bin) +add_executable (loadertest loadertest.cpp) +install (TARGETS loadertest RUNTIME DESTINATION bin) ############################################################################## # API tracers @@ -338,7 +351,7 @@ else () ) target_link_libraries (glxtrace dl ${X11_X11_LIB}) - + install (TARGETS glxtrace LIBRARY DESTINATION lib) endif ()