summaryrefslogtreecommitdiff
path: root/plugin/feedback/CMakeLists.txt
blob: 7407cc656377ac32b89ce5f5c903567cb561121e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)