mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 13:05:51 +03:00
Built a portable version of FindCSync that finds dev setup stuff.
This commit is contained in:
parent
759e2fff9d
commit
1b12e6590f
2 changed files with 15 additions and 10 deletions
|
@ -6,10 +6,7 @@ set( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
|
|||
include(${CMAKE_SOURCE_DIR}/VERSION.cmake)
|
||||
|
||||
find_package(Qt4 4.4.3 COMPONENTS QtCore QtGui QtXml QtNetwork QtTest REQUIRED )
|
||||
|
||||
IF( UNIX )
|
||||
find_package(Csync)
|
||||
ENDIF( UNIX )
|
||||
|
||||
if(CSYNC_FOUND)
|
||||
add_definitions(-DWITH_CSYNC)
|
||||
|
|
|
@ -1,8 +1,18 @@
|
|||
IF(EXISTS "${CMAKE_SOURCE_DIR}/../csync/src/csync.h")
|
||||
SET(CSYNC_INCLUDE_PATH ${CMAKE_SOURCE_DIR}/../csync/src/)
|
||||
ELSE(EXISTS "${CMAKE_SOURCE_DIR}/../csync/src/csync.h")
|
||||
FIND_PATH(CSYNC_INCLUDE_PATH NAMES csync.h HINTS /usr/include/csync)
|
||||
ENDIF(EXISTS "${CMAKE_SOURCE_DIR}/../csync/src/csync.h")
|
||||
|
||||
FIND_LIBRARY(CSYNC_LIBRARY NAMES csync
|
||||
HINTS "${CMAKE_SOURCE_DIR}/../buildcsync/src" )
|
||||
FIND_PATH(CSYNC_INCLUDE_PATH csync.h
|
||||
HINTS "${CMAKE_SOURCE_DIR}/../csync/src" "/usr/include/csync")
|
||||
IF(EXISTS "${CMAKE_SOURCE_DIR}/../buildcsync/src/")
|
||||
IF( WIN32 )
|
||||
SET(CSYNC_LIBRARY ${CMAKE_SOURCE_DIR}/../win/buildcsync/src/libcsync.dll)
|
||||
ELSE( WIN32 )
|
||||
SET(CSYNC_LIBRARY ${CMAKE_SOURCE_DIR}/../buildcsync/src/libcsync.so)
|
||||
ENDIF( WIN32 )
|
||||
ELSE(EXISTS "${CMAKE_SOURCE_DIR}/../buildcsync/src/")
|
||||
FIND_LIBRARY(CSYNC_LIBRARY NAMES csync )
|
||||
ENDIF(EXISTS "${CMAKE_SOURCE_DIR}/../buildcsync/src/")
|
||||
|
||||
SET(CSYNC_INCLUDE_DIR ${CSYNC_INCLUDE_PATH})
|
||||
|
||||
|
@ -12,6 +22,4 @@ include(FindPackageHandleStandardArgs)
|
|||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Csync DEFAULT_MSG
|
||||
CSYNC_LIBRARY CSYNC_INCLUDE_PATH)
|
||||
|
||||
MARK_AS_ADVANCED(
|
||||
CSYNC_INCLUDE_PATH
|
||||
CSYNC_LIBRARY)
|
||||
MARK_AS_ADVANCED( CSYNC_INCLUDE_PATH CSYNC_LIBRARY )
|
||||
|
|
Loading…
Reference in a new issue