SET(HEADERS_GEN_CONFIGURE
${CMAKE_CURRENT_BINARY_DIR}/mysql_version.h
${CMAKE_CURRENT_BINARY_DIR}/my_config.h
${CMAKE_CURRENT_BINARY_DIR}/mysqld_ername.h
${CMAKE_CURRENT_BINARY_DIR}/mysqld_error.h
${CMAKE_CURRENT_BINARY_DIR}/sql_state.h
)
SET(HEADERS_ABI
mysql.h
mysql_com.h
mysql_time.h
my_list.h
my_alloc.h
typelib.h
mysql/plugin.h
mysql/plugin_audit.h
mysql/plugin_ftparser.h
mysql/plugin_validate_password.h
)
SET(HEADERS
${HEADERS_ABI}
sqlparser.h
my_dbug.h
m_string.h
my_sys.h
my_xml.h
mysql_embed.h
my_pthread.h
decimal.h
errmsg.h
my_global.h
my_net.h
my_getopt.h
sslopt-longopts.h
my_dir.h
sslopt-vars.h
sslopt-case.h
sql_common.h
m_ctype.h
my_attribute.h
my_compiler.h
mysql_com_server.h
my_byteorder.h
byte_order_generic.h
byte_order_generic_x86.h
byte_order_generic_x86_64.h
little_endian.h
big_endian.h
${HEADERS_GEN_CONFIGURE}
)
file(GLOB INCLUDE_HEADERS *.h)
INSTALL(FILES ${INCLUDE_HEADERS} DESTINATION ${INSTALL_INCLUDEDIR}/
COMPONENT Development)
INSTALL(DIRECTORY mysql/ DESTINATION ${INSTALL_INCLUDEDIR}/mysql COMPONENT Development
PATTERN "*.h"
PATTERN "psi_abi*" EXCLUDE
)
INSTALL(DIRECTORY atomic/ DESTINATION ${INSTALL_INCLUDEDIR}/atomic COMPONENT
Development
PATTERN "*.h"
)