CMakeLists.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. memory_util.cpp
  13. microprofile.cpp
  14. misc.cpp
  15. profiler.cpp
  16. scm_rev.cpp
  17. string_util.cpp
  18. symbols.cpp
  19. thread.cpp
  20. timer.cpp
  21. )
  22. set(HEADERS
  23. assert.h
  24. bit_field.h
  25. break_points.h
  26. chunk_file.h
  27. code_block.h
  28. color.h
  29. common_funcs.h
  30. common_paths.h
  31. common_types.h
  32. debug_interface.h
  33. emu_window.h
  34. file_util.h
  35. hash.h
  36. key_map.h
  37. linear_disk_cache.h
  38. logging/text_formatter.h
  39. logging/filter.h
  40. logging/log.h
  41. logging/backend.h
  42. make_unique.h
  43. math_util.h
  44. memory_util.h
  45. microprofile.h
  46. microprofileui.h
  47. platform.h
  48. profiler.h
  49. profiler_reporting.h
  50. scm_rev.h
  51. scope_exit.h
  52. string_util.h
  53. swap.h
  54. symbols.h
  55. synchronized_wrapper.h
  56. thread.h
  57. thread_queue_list.h
  58. timer.h
  59. vector_math.h
  60. )
  61. if(ARCHITECTURE_x86_64)
  62. set(SRCS ${SRCS}
  63. x64/abi.cpp
  64. x64/cpu_detect.cpp
  65. x64/emitter.cpp)
  66. set(HEADERS ${HEADERS}
  67. x64/abi.h
  68. x64/cpu_detect.h
  69. x64/emitter.h)
  70. endif()
  71. create_directory_groups(${SRCS} ${HEADERS})
  72. add_library(common STATIC ${SRCS} ${HEADERS})