CMakeLists.txt 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. framebuffer_layout.cpp
  8. hash.cpp
  9. key_map.cpp
  10. logging/filter.cpp
  11. logging/text_formatter.cpp
  12. logging/backend.cpp
  13. memory_util.cpp
  14. microprofile.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. alignment.h
  25. assert.h
  26. bit_field.h
  27. bit_set.h
  28. break_points.h
  29. chunk_file.h
  30. code_block.h
  31. color.h
  32. common_funcs.h
  33. common_paths.h
  34. common_types.h
  35. emu_window.h
  36. file_util.h
  37. framebuffer_layout.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. math_util.h
  46. memory_util.h
  47. microprofile.h
  48. microprofileui.h
  49. platform.h
  50. profiler_reporting.h
  51. scm_rev.h
  52. scope_exit.h
  53. string_util.h
  54. swap.h
  55. symbols.h
  56. synchronized_wrapper.h
  57. thread.h
  58. thread_queue_list.h
  59. timer.h
  60. vector_math.h
  61. )
  62. if(ARCHITECTURE_x86_64)
  63. set(SRCS ${SRCS}
  64. x64/abi.cpp
  65. x64/cpu_detect.cpp
  66. x64/emitter.cpp)
  67. set(HEADERS ${HEADERS}
  68. x64/abi.h
  69. x64/cpu_detect.h
  70. x64/emitter.h)
  71. endif()
  72. create_directory_groups(${SRCS} ${HEADERS})
  73. add_library(common STATIC ${SRCS} ${HEADERS})