nextcloud-desktop/test/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

83 lines
3 KiB
Text
Raw Normal View History

find_package(SQLite3 3.8.0 REQUIRED)
include_directories(${CMAKE_SOURCE_DIR}/src
2017-08-14 20:19:52 +03:00
${CMAKE_SOURCE_DIR}/src/3rdparty/qtokenizer
${CMAKE_SOURCE_DIR}/src/csync
${CMAKE_SOURCE_DIR}/src/csync/std
${CMAKE_SOURCE_DIR}/src/gui
${CMAKE_SOURCE_DIR}/src/libsync
${CMAKE_BINARY_DIR}/src/csync
${CMAKE_BINARY_DIR}/src/libsync
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${SQLITE3_INCLUDE_DIR}
2017-08-14 20:19:52 +03:00
)
2012-10-26 22:24:12 +04:00
include(owncloud_add_test.cmake)
owncloud_add_test(OwncloudPropagator "")
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)
IF( NOT WIN32 AND NOT APPLE )
2014-08-27 11:15:31 +04:00
list(APPEND FolderWatcher_SRC ../src/gui/folderwatcher_linux.cpp)
ENDIF()
IF( WIN32 )
2014-08-27 11:15:31 +04:00
list(APPEND FolderWatcher_SRC ../src/gui/folderwatcher_win.cpp)
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)
ENDIF()
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 "")
owncloud_add_test(SyncFileItem "")
owncloud_add_test(ConcatUrl "")
2015-04-14 09:37:06 +03:00
owncloud_add_test(XmlParse "")
2015-11-23 14:09:25 +03:00
owncloud_add_test(ChecksumValidator "")
2015-10-13 16:01:59 +03:00
owncloud_add_test(ExcludedFiles "")
2017-04-13 14:02:00 +03:00
owncloud_add_test(FileSystem "")
owncloud_add_test(Utility "")
owncloud_add_test(SyncEngine "syncenginetestutils.h")
owncloud_add_test(SyncMove "syncenginetestutils.h")
owncloud_add_test(SyncConflict "syncenginetestutils.h")
2017-04-13 14:02:00 +03:00
owncloud_add_test(SyncFileStatusTracker "syncenginetestutils.h")
owncloud_add_test(ChunkingNg "syncenginetestutils.h")
owncloud_add_test(UploadReset "syncenginetestutils.h")
owncloud_add_test(AllFilesDeleted "syncenginetestutils.h")
2018-03-28 12:04:58 +03:00
owncloud_add_test(Blacklist "syncenginetestutils.h")
2017-04-13 14:02:00 +03:00
owncloud_add_test(FolderWatcher "${FolderWatcher_SRC}")
if( UNIX AND NOT APPLE )
owncloud_add_test(InotifyWatcher "${FolderWatcher_SRC}")
endif(UNIX AND NOT APPLE)
owncloud_add_benchmark(LargeSync "syncenginetestutils.h")
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 )
list(APPEND FolderMan_SRC ../src/gui/lockwatcher.cpp )
list(APPEND FolderMan_SRC ../src/gui/guiutility.cpp )
list(APPEND FolderMan_SRC ../src/gui/navigationpanehelper.cpp )
list(APPEND FolderMan_SRC ../src/gui/connectionvalidator.cpp )
list(APPEND FolderMan_SRC ../src/gui/clientproxy.cpp )
list(APPEND FolderMan_SRC ${FolderWatcher_SRC})
list(APPEND FolderMan_SRC stub.cpp )
owncloud_add_test(FolderMan "${FolderMan_SRC}")
owncloud_add_test(OAuth "syncenginetestutils.h;../src/gui/creds/oauth.cpp")
2017-06-22 16:11:27 +03:00
configure_file(test_journal.db "${PROJECT_BINARY_DIR}/bin/test_journal.db" COPYONLY)
2017-08-14 19:49:44 +03:00
find_package(CMocka)
if (CMOCKA_FOUND)
include(AddCMockaTest)
add_subdirectory(csync)
endif (CMOCKA_FOUND)