From 7a6c94f05d441cb93d51fb440146238e80dd456f Mon Sep 17 00:00:00 2001 From: Frederic Cervenansky Date: Mon, 18 Oct 2010 16:24:02 +0000 Subject: [PATCH] Qt appli for creaImageIO --- appli/CMakeLists.txt | 10 +++++++++- appli/TestQtGimmick/CMakeLists.txt | 11 +++++++++++ appli/TestQtGimmick/main.cxx | 14 ++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 appli/TestQtGimmick/CMakeLists.txt create mode 100644 appli/TestQtGimmick/main.cxx diff --git a/appli/CMakeLists.txt b/appli/CMakeLists.txt index d077277..d5a4e02 100644 --- a/appli/CMakeLists.txt +++ b/appli/CMakeLists.txt @@ -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 index 0000000..9e81de3 --- /dev/null +++ b/appli/TestQtGimmick/CMakeLists.txt @@ -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 index 0000000..74c0b23 --- /dev/null +++ b/appli/TestQtGimmick/main.cxx @@ -0,0 +1,14 @@ +#include +#include +//#include "vtkMetaImageReader.h" + + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + creaImageIO::QtGimmickReaderDialog w; + w.showMaximized(); + + return a.exec(); +} + -- 2.47.1