CMakeLists.txt 1.5 KB

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