CMakeLists.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. msg_handler.cpp
  19. scm_rev.cpp
  20. string_util.cpp
  21. symbols.cpp
  22. thread.cpp
  23. timer.cpp
  24. utf8.cpp
  25. )
  26. set(HEADERS
  27. assert.h
  28. bit_field.h
  29. break_points.h
  30. chunk_file.h
  31. common.h
  32. common_funcs.h
  33. common_paths.h
  34. common_types.h
  35. concurrent_ring_buffer.h
  36. cpu_detect.h
  37. debug_interface.h
  38. emu_window.h
  39. extended_trace.h
  40. fifo_queue.h
  41. file_search.h
  42. file_util.h
  43. hash.h
  44. key_map.h
  45. linear_disk_cache.h
  46. logging/text_formatter.h
  47. logging/filter.h
  48. logging/log.h
  49. logging/backend.h
  50. make_unique.h
  51. math_util.h
  52. mem_arena.h
  53. memory_util.h
  54. msg_handler.h
  55. platform.h
  56. scm_rev.h
  57. scope_exit.h
  58. string_util.h
  59. swap.h
  60. symbols.h
  61. thread.h
  62. thread_queue_list.h
  63. thunk.h
  64. timer.h
  65. utf8.h
  66. )
  67. create_directory_groups(${SRCS} ${HEADERS})
  68. add_library(common STATIC ${SRCS} ${HEADERS})