2014-01-23 16:20:01 +04:00
|
|
|
include_directories(${CMAKE_BINARY_DIR}/csync ${CMAKE_BINARY_DIR}/csync/src ${CMAKE_BINARY_DIR}/src)
|
2015-10-20 17:58:32 +03:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/csync/src/)
|
2014-09-22 10:58:35 +04:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/csync/src/std ${CMAKE_SOURCE_DIR}/src)
|
2016-04-20 18:46:53 +03:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/src/3rdparty/qtokenizer)
|
2017-01-13 18:24:18 +03:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti")
|
2014-03-20 00:02:12 +04:00
|
|
|
|
2016-04-12 14:42:57 +03:00
|
|
|
include(QtVersionAbstraction)
|
|
|
|
setup_qt()
|
|
|
|
|
2012-10-26 22:24:12 +04:00
|
|
|
include(owncloud_add_test.cmake)
|
2011-03-18 03:14:45 +03:00
|
|
|
|
2014-07-07 18:30:32 +04:00
|
|
|
owncloud_add_test(OwncloudPropagator "")
|
|
|
|
owncloud_add_test(Utility "")
|
|
|
|
owncloud_add_test(Updater "")
|
2014-01-23 16:20:01 +04:00
|
|
|
|
2014-08-27 11:15:31 +04:00
|
|
|
SET(FolderWatcher_SRC ../src/gui/folderwatcher.cpp)
|
2014-07-07 18:30:32 +04:00
|
|
|
|
|
|
|
IF( NOT WIN32 AND NOT APPLE )
|
2014-08-27 11:15:31 +04:00
|
|
|
list(APPEND FolderWatcher_SRC ../src/gui/folderwatcher_linux.cpp)
|
2014-07-07 18:30:32 +04:00
|
|
|
ENDIF()
|
|
|
|
IF( WIN32 )
|
2014-08-27 11:15:31 +04:00
|
|
|
list(APPEND FolderWatcher_SRC ../src/gui/folderwatcher_win.cpp)
|
2014-07-07 18:30:32 +04:00
|
|
|
ENDIF()
|
|
|
|
IF( APPLE )
|
2014-08-27 11:15:31 +04:00
|
|
|
list(APPEND FolderWatcher_SRC ../src/gui/folderwatcher_mac.cpp)
|
2015-07-28 16:18:43 +03:00
|
|
|
list(APPEND FolderWatcher_SRC ../src/gui/socketapisocket_mac.mm)
|
2014-07-07 18:30:32 +04:00
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
owncloud_add_test(FolderWatcher "${FolderWatcher_SRC}")
|
2014-01-23 16:20:01 +04:00
|
|
|
if( UNIX AND NOT APPLE )
|
2016-10-13 13:02:15 +03:00
|
|
|
if(HAVE_QT5 AND NOT BUILD_WITH_QT4)
|
2014-07-07 18:30:32 +04:00
|
|
|
owncloud_add_test(InotifyWatcher "${FolderWatcher_SRC}")
|
2016-10-13 13:02:15 +03:00
|
|
|
endif(HAVE_QT5 AND NOT BUILD_WITH_QT4)
|
2014-01-23 16:20:01 +04:00
|
|
|
endif(UNIX AND NOT APPLE)
|
|
|
|
|
2014-07-07 18:30:32 +04:00
|
|
|
owncloud_add_test(CSyncSqlite "")
|
2014-09-18 21:58:04 +04:00
|
|
|
owncloud_add_test(NetrcParser ../src/cmd/netrcparser.cpp)
|
2014-11-19 16:14:54 +03:00
|
|
|
owncloud_add_test(OwnSql "")
|
|
|
|
owncloud_add_test(SyncJournalDB "")
|
2015-02-12 21:15:55 +03:00
|
|
|
owncloud_add_test(SyncFileItem "")
|
2015-02-13 16:52:40 +03:00
|
|
|
owncloud_add_test(ConcatUrl "")
|
2014-10-14 22:51:51 +04:00
|
|
|
|
2015-04-14 09:37:06 +03:00
|
|
|
owncloud_add_test(XmlParse "")
|
2015-05-12 16:49:01 +03:00
|
|
|
owncloud_add_test(FileSystem "")
|
2015-11-23 14:09:25 +03:00
|
|
|
owncloud_add_test(ChecksumValidator "")
|
2014-07-07 18:30:32 +04:00
|
|
|
|
2015-10-13 16:01:59 +03:00
|
|
|
owncloud_add_test(ExcludedFiles "")
|
2016-08-18 11:31:27 +03:00
|
|
|
if(HAVE_QT5 AND NOT BUILD_WITH_QT4)
|
2016-08-04 15:59:46 +03:00
|
|
|
owncloud_add_test(SyncEngine "syncenginetestutils.h")
|
|
|
|
owncloud_add_test(SyncFileStatusTracker "syncenginetestutils.h")
|
2016-10-31 17:16:53 +03:00
|
|
|
owncloud_add_test(ChunkingNg "syncenginetestutils.h")
|
2017-01-13 16:44:45 +03:00
|
|
|
owncloud_add_test(UploadReset "syncenginetestutils.h")
|
2016-08-18 11:31:27 +03:00
|
|
|
endif(HAVE_QT5 AND NOT BUILD_WITH_QT4)
|
2015-07-13 15:35:19 +03:00
|
|
|
|
|
|
|
SET(FolderMan_SRC ../src/gui/folderman.cpp)
|
|
|
|
list(APPEND FolderMan_SRC ../src/gui/folder.cpp )
|
|
|
|
list(APPEND FolderMan_SRC ../src/gui/socketapi.cpp )
|
|
|
|
list(APPEND FolderMan_SRC ../src/gui/accountstate.cpp )
|
|
|
|
list(APPEND FolderMan_SRC ../src/gui/syncrunfilelog.cpp )
|
2016-04-29 17:14:18 +03:00
|
|
|
list(APPEND FolderMan_SRC ../src/gui/lockwatcher.cpp )
|
2015-07-13 15:35:19 +03:00
|
|
|
list(APPEND FolderMan_SRC ${FolderWatcher_SRC})
|
|
|
|
list(APPEND FolderMan_SRC stub.cpp )
|
2015-08-04 17:55:10 +03:00
|
|
|
#include_directories(${QTKEYCHAIN_INCLUDE_DIR})
|
|
|
|
#include_directories(${CMAKE_BINARY_DIR}/src/gui)
|
|
|
|
#include_directories(${CMAKE_SOURCE_DIR}/src/3rdparty/qjson)
|
2015-07-13 15:35:19 +03:00
|
|
|
owncloud_add_test(FolderMan "${FolderMan_SRC}")
|
|
|
|
|