summaryrefslogtreecommitdiffstats
path: root/libmariadb/plugins/pvio/CMakeLists.txt
blob: b74407a662463b56068dc43fc75d81c3effad5fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
SET(PVIO_DIR ${CC_SOURCE_DIR}/plugins/pvio)

INCLUDE_DIRECTORIES(${PVIO_DIR})
INCLUDE_DIRECTORIES(${CC_SOURCE_DIR}/include)

#native password
REGISTER_PLUGIN(TARGET pvio_socket
                TYPE MARIADB_CLIENT_PLUGIN_PVIO
                CONFIGURATIONS STATIC DYNAMIC DEFAULT
                DEFAULT STATIC
                SOURCES ${CC_SOURCE_DIR}/plugins/pvio/pvio_socket.c)

IF(WIN32)
  # named pipe
  REGISTER_PLUGIN(TARGET pvio_npipe
                TYPE MARIADB_CLIENT_PLUGIN_PVIO
                CONFIGURATIONS STATIC DYNAMIC DEFAULT
                DEFAULT STATIC
                SOURCES ${CC_SOURCE_DIR}/plugins/pvio/pvio_npipe.c)

  # shared memory
  REGISTER_PLUGIN(TARGET pvio_shmem
                TYPE MARIADB_CLIENT_PLUGIN_PVIO
                CONFIGURATIONS STATIC DYNAMIC DEFAULT
                DEFAULT DYNAMIC
                SOURCES ${CC_SOURCE_DIR}/plugins/pvio/pvio_shmem.c)
ENDIF()