CMakeLists.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. if (FOLLY_USE_SYMBOLIZER)
  2. add_library(
  3. folly_exception_tracer_base
  4. ExceptionTracer.cpp
  5. StackTrace.cpp
  6. )
  7. apply_folly_compile_options_to_target(folly_exception_tracer_base)
  8. target_link_libraries(
  9. folly_exception_tracer_base
  10. PUBLIC folly
  11. )
  12. add_library(
  13. folly_exception_tracer
  14. ExceptionStackTraceLib.cpp
  15. ExceptionTracerLib.cpp
  16. )
  17. apply_folly_compile_options_to_target(folly_exception_tracer)
  18. target_link_libraries(
  19. folly_exception_tracer
  20. PUBLIC folly_exception_tracer_base
  21. )
  22. add_library(
  23. folly_exception_counter
  24. ExceptionCounterLib.cpp
  25. )
  26. apply_folly_compile_options_to_target(folly_exception_counter)
  27. target_link_libraries(
  28. folly_exception_counter
  29. PUBLIC folly_exception_tracer
  30. )
  31. install(
  32. FILES
  33. ExceptionAbi.h
  34. ExceptionCounterLib.h
  35. ExceptionTracer.h
  36. ExceptionTracerLib.h
  37. StackTrace.h
  38. DESTINATION
  39. ${INCLUDE_INSTALL_DIR}/folly/experimental/exception_tracer
  40. )
  41. install(
  42. TARGETS
  43. folly_exception_tracer_base
  44. folly_exception_tracer
  45. folly_exception_counter
  46. EXPORT folly
  47. RUNTIME DESTINATION ${BIN_INSTALL_DIR}
  48. LIBRARY DESTINATION ${LIB_INSTALL_DIR}
  49. ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
  50. )
  51. endif()