summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2019-10-06 15:05:09 +0200
committergregory guy <gregory-tde@laposte.net>2019-10-10 15:33:12 +0200
commit19b046ec429c32f88658352232e6cc92276dff97 (patch)
treee30dcea233469b21cc6981e03fd22b678cbcb22c /test
parentceb78a2a816a6b9614871764d7d18e3a6134bc0a (diff)
downloadlibcaldav-19b046ec429c32f88658352232e6cc92276dff97.tar.gz
libcaldav-19b046ec429c32f88658352232e6cc92276dff97.zip
Conversion to the cmake building system.
rfc4791.pdf has been moved to the doc folder. caldav pc file has been moved in the src folder. Signed-off-by: gregory guy <gregory-tde@laposte.net>
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt1
-rw-r--r--test/src/CMakeLists.txt20
-rw-r--r--test/unittest/CMakeLists.txt20
3 files changed, 41 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
new file mode 100644
index 0000000..d5b0f6d
--- /dev/null
+++ b/test/CMakeLists.txt
@@ -0,0 +1 @@
+#add_subdirectory( ics )
diff --git a/test/src/CMakeLists.txt b/test/src/CMakeLists.txt
new file mode 100644
index 0000000..947fc8a
--- /dev/null
+++ b/test/src/CMakeLists.txt
@@ -0,0 +1,20 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/src
+ ${GTHREAD_INCLUDE_DIRS}
+)
+
+
+##### caldav-test (executable)
+
+tde_add_executable( caldav-test
+
+ SOURCES
+ caldav-test.c
+ LINK
+ caldav-static
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/test/unittest/CMakeLists.txt b/test/unittest/CMakeLists.txt
new file mode 100644
index 0000000..1efdef2
--- /dev/null
+++ b/test/unittest/CMakeLists.txt
@@ -0,0 +1,20 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/src
+ ${GTHREAD_INCLUDE_DIRS}
+)
+
+
+##### unittest (executable)
+
+tde_add_executable( unittest
+
+ SOURCES
+ libunit.c
+ LINK
+ caldav-static
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)