CMakeLists.txt 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Generate cpp with Git revision from template
  2. configure_file("${CMAKE_CURRENT_SOURCE_DIR}/scm_rev.cpp.in" "${CMAKE_CURRENT_SOURCE_DIR}/scm_rev.cpp" @ONLY)
  3. set(SRCS
  4. break_points.cpp
  5. emu_window.cpp
  6. extended_trace.cpp
  7. file_search.cpp
  8. file_util.cpp
  9. hash.cpp
  10. key_map.cpp
  11. logging/filter.cpp
  12. logging/text_formatter.cpp
  13. logging/backend.cpp
  14. math_util.cpp
  15. mem_arena.cpp
  16. memory_util.cpp
  17. misc.cpp
  18. scm_rev.cpp
  19. string_util.cpp
  20. symbols.cpp
  21. thread.cpp
  22. timer.cpp
  23. utf8.cpp
  24. )
  25. set(HEADERS
  26. assert.h
  27. bit_field.h
  28. break_points.h
  29. chunk_file.h
  30. common.h
  31. common_funcs.h
  32. common_paths.h
  33. common_types.h
  34. concurrent_ring_buffer.h
  35. cpu_detect.h
  36. debug_interface.h
  37. emu_window.h
  38. extended_trace.h
  39. fifo_queue.h
  40. file_search.h
  41. file_util.h
  42. hash.h
  43. key_map.h
  44. linear_disk_cache.h
  45. logging/text_formatter.h
  46. logging/filter.h
  47. logging/log.h
  48. logging/backend.h
  49. make_unique.h
  50. math_util.h
  51. mem_arena.h
  52. memory_util.h
  53. platform.h
  54. scm_rev.h
  55. scope_exit.h
  56. string_util.h
  57. swap.h
  58. symbols.h
  59. thread.h
  60. thread_queue_list.h
  61. thunk.h
  62. timer.h
  63. utf8.h
  64. )
  65. create_directory_groups(${SRCS} ${HEADERS})
  66. add_library(common STATIC ${SRCS} ${HEADERS})