summaryrefslogtreecommitdiff
path: root/plugin/feedback/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/feedback/CMakeLists.txt')
-rw-r--r--plugin/feedback/CMakeLists.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/plugin/feedback/CMakeLists.txt b/plugin/feedback/CMakeLists.txt
new file mode 100644
index 00000000000..7407cc65637
--- /dev/null
+++ b/plugin/feedback/CMakeLists.txt
@@ -0,0 +1,18 @@
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/sql ${CMAKE_SOURCE_DIR}/regex
+ ${CMAKE_SOURCE_DIR}/extra/yassl/include)
+
+SET(FEEDBACK_SOURCES feedback.cc sender_thread.cc
+ url_base.cc url_http.cc utils.cc)
+
+INCLUDE (CheckIncludeFiles)
+CHECK_INCLUDE_FILES (netdb.h HAVE_NETDB_H)
+IF(HAVE_NETDB_H)
+ ADD_DEFINITIONS(-DHAVE_NETDB_H)
+ENDIF(HAVE_NETDB_H)
+
+IF(WIN32)
+ #SET(FEEDBACK_LIBS Ws2_32)
+ MYSQL_ADD_PLUGIN(FEEDBACK ${FEEDBACK_SOURCES} STATIC_ONLY)
+ELSE(WIN32)
+ MYSQL_ADD_PLUGIN(FEEDBACK ${FEEDBACK_SOURCES})
+ENDIF(WIN32)