You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.2 KiB

  1. # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  2. #
  3. # This program is free software; you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation; version 2 of the License.
  6. #
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. # GNU General Public License for more details.
  11. #
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program; if not, write to the Free Software Foundation,
  14. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
  15. INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}
  16. ${CMAKE_SOURCE_DIR}/include
  17. ${CMAKE_SOURCE_DIR}/sql
  18. ${CMAKE_SOURCE_DIR}/regex
  19. ${CMAKE_SOURCE_DIR}/extra/yassl/include)
  20. ADD_DEFINITIONS(-DMYSQL_SERVER)
  21. SET(PERFSCHEMA_SOURCES ha_perfschema.h
  22. pfs_column_types.h
  23. pfs_column_values.h
  24. pfs_events_waits.h
  25. pfs_global.h
  26. pfs.h
  27. pfs_instr.h
  28. pfs_instr_class.h
  29. pfs_lock.h
  30. pfs_atomic.h
  31. pfs_server.h
  32. pfs_stat.h
  33. pfs_engine_table.h
  34. pfs_timer.h
  35. table_all_instr.h
  36. table_events_waits.h
  37. table_events_waits_summary.h
  38. table_ews_global_by_event_name.h
  39. table_file_instances.h
  40. table_file_summary.h
  41. table_performance_timers.h
  42. table_setup_consumers.h
  43. table_setup_instruments.h
  44. table_setup_timers.h
  45. table_sync_instances.h
  46. table_threads.h
  47. ha_perfschema.cc
  48. pfs.cc
  49. pfs_column_values.cc
  50. pfs_events_waits.cc
  51. pfs_global.cc
  52. pfs_instr.cc
  53. pfs_instr_class.cc
  54. pfs_server.cc
  55. pfs_engine_table.cc
  56. pfs_timer.cc
  57. table_all_instr.cc
  58. table_events_waits.cc
  59. table_events_waits_summary.cc
  60. table_ews_global_by_event_name.cc
  61. table_file_instances.cc
  62. table_file_summary.cc
  63. table_performance_timers.cc
  64. table_setup_consumers.cc
  65. table_setup_instruments.cc
  66. table_setup_timers.cc
  67. table_sync_instances.cc
  68. table_threads.cc
  69. pfs_atomic.cc
  70. pfs_check.cc
  71. )
  72. MYSQL_ADD_PLUGIN(perfschema ${PERFSCHEMA_SOURCES} STORAGE_ENGINE DEFAULT STATIC_ONLY)
  73. IF(WITH_PERFSCHEMA_STORAGE_ENGINE AND WITH_UNIT_TESTS)
  74. ADD_SUBDIRECTORY(unittest)
  75. ENDIF()