-
Notifications
You must be signed in to change notification settings - Fork 807
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
40 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,40 @@ | ||
if (WIN32) | ||
add_library("${synclib_NAME}_vfs_cfapi" SHARED | ||
cfapiwrapper.cpp | ||
hydrationjob.cpp | ||
vfs_cfapi.cpp | ||
) | ||
add_definitions(-D_WIN32_WINNT=_WIN32_WINNT_WIN10) | ||
|
||
target_link_libraries("${synclib_NAME}_vfs_cfapi" | ||
"${synclib_NAME}" | ||
cldapi | ||
) | ||
add_library("${synclib_NAME}_vfs_cfapi" SHARED | ||
cfapiwrapper.cpp | ||
hydrationjob.cpp | ||
vfs_cfapi.cpp | ||
) | ||
|
||
set_target_properties("${synclib_NAME}_vfs_cfapi" PROPERTIES | ||
LIBRARY_OUTPUT_DIRECTORY ${BIN_OUTPUT_DIRECTORY} | ||
RUNTIME_OUTPUT_DIRECTORY ${BIN_OUTPUT_DIRECTORY} | ||
PREFIX "" | ||
AUTOMOC TRUE | ||
) | ||
target_link_libraries("${synclib_NAME}_vfs_cfapi" | ||
"${synclib_NAME}" | ||
cldapi | ||
) | ||
|
||
if(APPLE) | ||
# for being loadable when client run from build dir | ||
set(vfs_buildoutputdir "${BIN_OUTPUT_DIRECTORY}/${OWNCLOUD_OSX_BUNDLE}/Contents/PlugIns/") | ||
set_target_properties("${synclib_NAME}_vfs_cfapi" | ||
PROPERTIES | ||
LIBRARY_OUTPUT_DIRECTORY ${vfs_buildoutputdir} | ||
RUNTIME_OUTPUT_DIRECTORY ${vfs_buildoutputdir} | ||
set_target_properties("${synclib_NAME}_vfs_cfapi" PROPERTIES | ||
LIBRARY_OUTPUT_DIRECTORY ${BIN_OUTPUT_DIRECTORY} | ||
RUNTIME_OUTPUT_DIRECTORY ${BIN_OUTPUT_DIRECTORY} | ||
PREFIX "" | ||
AUTOMOC TRUE | ||
) | ||
# For being lodable when client run from install dir (after make macdeployqt) | ||
set(vfs_installdir "${LIB_INSTALL_DIR}/../PlugIns") | ||
else() | ||
set(vfs_installdir "${PLUGINDIR}") | ||
endif() | ||
|
||
INSTALL(TARGETS "${synclib_NAME}_vfs_cfapi" | ||
LIBRARY DESTINATION "${vfs_installdir}" | ||
RUNTIME DESTINATION "${vfs_installdir}" | ||
) | ||
if(APPLE) | ||
# for being loadable when client run from build dir | ||
set(vfs_buildoutputdir "${BIN_OUTPUT_DIRECTORY}/${OWNCLOUD_OSX_BUNDLE}/Contents/PlugIns/") | ||
set_target_properties("${synclib_NAME}_vfs_cfapi" | ||
PROPERTIES | ||
LIBRARY_OUTPUT_DIRECTORY ${vfs_buildoutputdir} | ||
RUNTIME_OUTPUT_DIRECTORY ${vfs_buildoutputdir} | ||
) | ||
# For being lodable when client run from install dir (after make macdeployqt) | ||
set(vfs_installdir "${LIB_INSTALL_DIR}/../PlugIns") | ||
else() | ||
set(vfs_installdir "${PLUGINDIR}") | ||
endif() | ||
|
||
INSTALL(TARGETS "${synclib_NAME}_vfs_cfapi" | ||
LIBRARY DESTINATION "${vfs_installdir}" | ||
RUNTIME DESTINATION "${vfs_installdir}" | ||
) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters