mariadb/plugin/feedback/CMakeLists.txt

24 lines
585 B
Text
Raw Normal View History

INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/sql
${PCRE_INCLUDES}
${SSL_INCLUDE_DIRS})
2011-10-04 16:03:10 +02:00
SET(FEEDBACK_SOURCES feedback.cc sender_thread.cc
url_base.cc url_http.cc utils.cc)
ADD_DEFINITIONS(${SSL_DEFINES})
2011-11-22 18:04:38 +01:00
INCLUDE (CheckIncludeFiles)
CHECK_INCLUDE_FILES (netdb.h HAVE_NETDB_H)
IF(HAVE_NETDB_H)
ADD_DEFINITIONS(-DHAVE_NETDB_H)
ENDIF(HAVE_NETDB_H)
2011-10-04 16:03:10 +02:00
2011-11-22 18:04:38 +01:00
IF(WIN32)
SET(MAYBE_STATIC_ONLY STATIC_ONLY)
2011-11-22 18:04:38 +01:00
ENDIF(WIN32)
MYSQL_ADD_PLUGIN(FEEDBACK ${FEEDBACK_SOURCES}
LINK_LIBRARIES ${SSL_LIBRARIES}
${MAYBE_STATIC_ONLY} RECOMPILE_FOR_EMBEDDED DEFAULT)