]> git.cworth.org Git - apitrace/blobdiff - thirdparty/snappy/CMakeLists.txt
d3dretrace: Force DWM traces to run on a window.
[apitrace] / thirdparty / snappy / CMakeLists.txt
index 87873d9f593b2ea0fcd4d44a24fc61f81fa25eae..25281a6b981cbadb818dced2f75dec654582c011 100644 (file)
@@ -1,11 +1,14 @@
-add_definitions (-DHAVE_CONFIG_H)
+add_definitions (
+    -DNDEBUG
+    -DHAVE_CONFIG_H
+)
 
 # Adjust warnings
 if (CMAKE_COMPILER_IS_GNUCXX)
     add_definitions (-Wno-unused-function)
 endif ()
 
-add_library (snappy_bundled STATIC
+add_library (snappy_bundled STATIC EXCLUDE_FROM_ALL
     snappy.cc
     snappy-sinksource.cc
     snappy-stubs-internal.cc
@@ -15,3 +18,9 @@ add_library (snappy_bundled STATIC
 set_target_properties (snappy_bundled PROPERTIES
     COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS}"
 )
+
+install (
+    FILES COPYING
+    DESTINATION ${DOC_INSTALL_DIR}
+    RENAME LICENSE-snappy.txt
+)