Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2014-07-07 18:30:32 +0400
committerOlivier Goffart <ogoffart@woboq.com>2014-07-10 00:44:08 +0400
commit45d1567057618736e018a15e27b4930c29f09829 (patch)
tree42115f95dddf21d51f93ff3988fbb1fe7a4a6207 /test/CMakeLists.txt
parent8aacb3f7ecf5f6d790304612f445fbb262e7f7d2 (diff)
Move Folder, FolderMan, and FolderWatcher outside of owncloudsync
Those class are maintaining the folder for the mirall configuration They are not usefull in command line clients Also the FolderWatcher is only used by the folder and not used by the command line clients
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r--test/CMakeLists.txt26
1 files changed, 20 insertions, 6 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 3521be168..37ac1e83b 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -4,13 +4,27 @@ include_directories(${CMAKE_SOURCE_DIR}/csync/src/std)
include(owncloud_add_test.cmake)
-owncloud_add_test(OwncloudPropagator)
-owncloud_add_test(Utility)
-owncloud_add_test(Updater)
-owncloud_add_test(FolderWatcher)
-owncloud_add_test(CSyncSqlite)
+owncloud_add_test(OwncloudPropagator "")
+owncloud_add_test(Utility "")
+owncloud_add_test(Updater "")
+SET(FolderWatcher_SRC ../src/mirall/folderwatcher.cpp)
+
+IF( NOT WIN32 AND NOT APPLE )
+list(APPEND FolderWatcher_SRC ../src/mirall/folderwatcher_linux.cpp)
+ENDIF()
+IF( WIN32 )
+list(APPEND FolderWatcher_SRC ../src/mirall/folderwatcher_win.cpp)
+ENDIF()
+IF( APPLE )
+list(APPEND FolderWatcher_SRC ../src/mirall/folderwatcher_mac.cpp)
+ENDIF()
+
+owncloud_add_test(FolderWatcher "${FolderWatcher_SRC}")
if( UNIX AND NOT APPLE )
- owncloud_add_test(InotifyWatcher)
+ owncloud_add_test(InotifyWatcher "${FolderWatcher_SRC}")
endif(UNIX AND NOT APPLE)
+owncloud_add_test(CSyncSqlite "")
+
+