diff --git a/src/libsync/vfs/cfapi/CMakeLists.txt b/src/libsync/vfs/cfapi/CMakeLists.txt index 77392c21f96d5..de029602d4067 100644 --- a/src/libsync/vfs/cfapi/CMakeLists.txt +++ b/src/libsync/vfs/cfapi/CMakeLists.txt @@ -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 @@ -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}" diff --git a/test/nextcloud_add_test.cmake b/test/nextcloud_add_test.cmake index f7a6572b3f731..f707acd67b49c 100644 --- a/test/nextcloud_add_test.cmake +++ b/test/nextcloud_add_test.cmake @@ -13,6 +13,7 @@ macro(nextcloud_add_test test_class) testutils nextcloudCore cmdCore + "${synclib_NAME}_vfs_cfapi" Qt5::Test Qt5::Quick )