mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 12:19:03 +03:00
35 lines
629 B
Text
35 lines
629 B
Text
|
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}
|
||
|
)
|
||
|
|