nextcloud-desktop/modules/CMakeLists.txt
Andreas Schneider ab39159607 Add virtual IO plugin system.
This is the initial commit of the vio plugin system. The idea is based on
gnomevfs.
2008-04-07 17:16:41 +02:00

34 lines
629 B
CMake

project(modules)
find_package(Libsmbclient REQUIRED)
set(MODULES_PUBLIC_INCLUDE_DIRS
${CMAKE_CURRENT_SOURCE_DIR}
CACHE INTERNAL "smb_plugin include directories"
)
set(MODULES_PRIVATE_INCLUDE_DIRS
${CSTDLIB_PUBLIC_INCLUDE_DIRS}
${CSYNC_PUBLIC_INCLUDE_DIRS}
${LIBSMBCLIENT_INCLUDE_DIRS}
)
set(SMB_PLUGIN
csync_smb
)
include_directories(
${MODULES_PUBLIC_INCLUDE_DIRS}
${MODULES_PRIVATE_INCLUDE_DIRS}
)
macro_add_plugin(${SMB_PLUGIN} csync_smb.c)
target_link_libraries(${SMB_PLUGIN} ${LIBSMBCLIENT_LIBRARIES} ${CSTDLIB_LIBRARY})
INSTALL(
TARGETS
${SMB_PLUGIN}
DESTINATION
${PLUGIN_INSTALL_DIR}
)