summaryrefslogtreecommitdiff
path: root/plugin/provider_lzo/CMakeLists.txt
blob: f9104b54f9dbd4b9aa4a0bd12104173636a82700 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
FIND_PACKAGE(LZO)

IF (LZO_FOUND)
  GET_PROPERTY(dirs DIRECTORY PROPERTY INCLUDE_DIRECTORIES)
  LIST(REMOVE_ITEM dirs ${CMAKE_SOURCE_DIR}/include/providers)
  SET_PROPERTY(DIRECTORY PROPERTY INCLUDE_DIRECTORIES "${dirs}")

  INCLUDE_DIRECTORIES(${LZO_INCLUDE_DIRS})

  MYSQL_ADD_PLUGIN(provider_lzo plugin.c COMPONENT provider-lzo
    LINK_LIBRARIES ${LZO_LIBRARIES} CONFIG provider_lzo.cnf)
ENDIF()