CMakeLists.txt 1.7 KB

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