]> Creatis software - gdcm.git/commitdiff
ENH: Adding a test for install
authormalaterre <malaterre>
Mon, 15 May 2006 21:21:50 +0000 (21:21 +0000)
committermalaterre <malaterre>
Mon, 15 May 2006 21:21:50 +0000 (21:21 +0000)
Testing/Install/CMakeLists.txt [new file with mode: 0644]
Testing/Install/dummy.cxx [new file with mode: 0644]

diff --git a/Testing/Install/CMakeLists.txt b/Testing/Install/CMakeLists.txt
new file mode 100644 (file)
index 0000000..8fa6f3a
--- /dev/null
@@ -0,0 +1,7 @@
+PROJECT(DummyInstall)
+
+FIND_PACKAGE(GDCM REQUIRED)
+INCLUDE(${GDCM_USE_FILE})
+
+ADD_EXECUTABLE(dummy dummy.cxx)
+TARGET_LINK_LIBRARIES(dummy gdcm)
diff --git a/Testing/Install/dummy.cxx b/Testing/Install/dummy.cxx
new file mode 100644 (file)
index 0000000..7808f5e
--- /dev/null
@@ -0,0 +1,7 @@
+#include <gdcm.h>
+
+int main()
+{
+  gdcm::File *file = new gdcm::File();
+  return 0;
+}