CMakeLists.txt 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. console_listener.cpp
  6. extended_trace.cpp
  7. file_search.cpp
  8. file_util.cpp
  9. hash.cpp
  10. log_manager.cpp
  11. math_util.cpp
  12. mem_arena.cpp
  13. memory_util.cpp
  14. misc.cpp
  15. msg_handler.cpp
  16. scm_rev.cpp
  17. string_util.cpp
  18. symbols.cpp
  19. thread.cpp
  20. timer.cpp
  21. utf8.cpp
  22. )
  23. set(HEADERS
  24. bit_field.h
  25. break_points.h
  26. chunk_file.h
  27. common.h
  28. common_funcs.h
  29. common_paths.h
  30. common_types.h
  31. console_listener.h
  32. cpu_detect.h
  33. debug_interface.h
  34. emu_window.h
  35. extended_trace.h
  36. fifo_queue.h
  37. file_search.h
  38. file_util.h
  39. fixed_size_queue.h
  40. hash.h
  41. linear_disk_cache.h
  42. log.h
  43. log_manager.h
  44. math_util.h
  45. mem_arena.h
  46. memory_util.h
  47. msg_handler.h
  48. platform.h
  49. scm_rev.h
  50. std_condition_variable.h
  51. std_mutex.h
  52. std_thread.h
  53. string_util.h
  54. swap.h
  55. symbols.h
  56. thread.h
  57. thread_queue_list.h
  58. thunk.h
  59. timer.h
  60. utf8.h
  61. )
  62. create_directory_groups(${SRCS} ${HEADERS})
  63. add_library(common STATIC ${SRCS} ${HEADERS})