]> git.cworth.org Git - apitrace/blobdiff - CMakeLists.txt
Ubuntu 12.04 reports ffmpeg as deprecated, use avconv instead.
[apitrace] / CMakeLists.txt
index 27a384a06109fa93a25e5a943f2abe280d060fea..db030314f956b704496c21a0b4018ac17b664407 100644 (file)
@@ -259,6 +259,12 @@ if (WIN32)
     add_subdirectory (thirdparty/directxtex)
 endif ()
 
+if (CMAKE_EXECUTABLE_FORMAT STREQUAL "ELF")
+    add_subdirectory (thirdparty/libbacktrace)
+    include_directories (${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/libbacktrace)
+    set (LIBBACKTRACE_LIBRARIES backtrace)
+endif ()
+
 # Always use bundled QJSon.
 # - The packaged versions QJson are very old, and do not support NaN/Infinity.
 # - To make it easier to build the GUI on Windows and MacOSX, as there are no