Skip to content

Commit

Permalink
allow compilation of cfapi automated test
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
  • Loading branch information
mgallien committed Jul 2, 2021
1 parent c6fdf1b commit 51b966b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/libsync/vfs/cfapi/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
if (WIN32)
add_definitions(-D_WIN32_WINNT=_WIN32_WINNT_WIN10)

include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR})

add_library("${synclib_NAME}_vfs_cfapi" SHARED
cfapiwrapper.cpp
hydrationjob.cpp
Expand Down Expand Up @@ -29,6 +31,12 @@ if (WIN32)
EXPORT_FILE_NAME cfapiexport.h
)

GENERATE_EXPORT_HEADER( "${synclib_NAME}_vfs_cfapi"
BASE_NAME "${synclib_NAME}_vfs_cfapi"
EXPORT_MACRO_NAME NEXTCLOUD_CFAPI_EXPORT
EXPORT_FILE_NAME cfapiexport.h
)

INSTALL(TARGETS "${synclib_NAME}_vfs_cfapi"
LIBRARY DESTINATION "${vfs_installdir}"
RUNTIME DESTINATION "${vfs_installdir}"
Expand Down
1 change: 1 addition & 0 deletions test/nextcloud_add_test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ macro(nextcloud_add_test test_class)
testutils
nextcloudCore
cmdCore
"${synclib_NAME}_vfs_cfapi"
Qt5::Test
Qt5::Quick
)
Expand Down

0 comments on commit 51b966b

Please sign in to comment.