]> Creatis software - creaImageIO.git/commitdiff
Qt appli for creaImageIO
authorFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Mon, 18 Oct 2010 16:24:02 +0000 (16:24 +0000)
committerFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Mon, 18 Oct 2010 16:24:02 +0000 (16:24 +0000)
appli/CMakeLists.txt
appli/TestQtGimmick/CMakeLists.txt [new file with mode: 0644]
appli/TestQtGimmick/main.cxx [new file with mode: 0644]

index d077277238896d6d0d7f927c6f4664d9c7666a4a..d5a4e022ab76171c1915939b2ac71a3c2d7a332f 100644 (file)
@@ -1,9 +1,17 @@
 
   SUBDIRS(gimmick)
+  SUBDIRS(TestGimmickReaderDialog)
+  if(USE_WXWIDGETS)
   SUBDIRS(wxGimmick)
   SUBDIRS(TestWxGimmickReaderDialog)
-  SUBDIRS(TestGimmickReaderDialog)
   SUBDIRS(TestWxSimpleView)
+  ENDIF(USE_WXWIDGETS)
+  
+  IF(USE_QT4)
+  SUBDIRS(TestQtGimmick)
+  ENDIF(USE_QT4)
+  
+
   #SUBDIRS(TestWxGimmickReaderDialogJava)
 #LSE (BUILD_V2)
  # SUBDIRS(TestWxGimmickDialog)
diff --git a/appli/TestQtGimmick/CMakeLists.txt b/appli/TestQtGimmick/CMakeLists.txt
new file mode 100644 (file)
index 0000000..9e81de3
--- /dev/null
@@ -0,0 +1,11 @@
+
+IF(WIN32)
+  ADD_EXECUTABLE(TestQtGimmick WIN32 main)  
+  SET_TARGET_PROPERTIES(TestQtGimmick PROPERTIES LINK_FLAGS /subsystem:console )
+ELSE(WIN32)
+  ADD_EXECUTABLE(TestQtGimmick MACOSX_BUNDLE main)
+ENDIF(WIN32)
+
+TARGET_LINK_LIBRARIES(         TestQtGimmick creaImageIO  )
+
+INSTALL_TARGETS(/bin/ TestQtGimmick )
diff --git a/appli/TestQtGimmick/main.cxx b/appli/TestQtGimmick/main.cxx
new file mode 100644 (file)
index 0000000..74c0b23
--- /dev/null
@@ -0,0 +1,14 @@
+#include <QApplication>
+#include <creaImageIOQtGimmickReaderDialog.h>
+//#include "vtkMetaImageReader.h"
+
+
+int main(int argc, char *argv[])
+{
+    QApplication a(argc, argv);
+    creaImageIO::QtGimmickReaderDialog w;
+    w.showMaximized();
+
+    return a.exec();
+}
+