Skip to content

Commit

Permalink
Merge pull request DGtal-team#337 from kerautret/FixQTCMoc
Browse files Browse the repository at this point in the history
Fix qt5 compile (issue DGtal-team#336) with SliceViewer Fix (issue DGtal-team#335)
  • Loading branch information
dcoeurjo authored Aug 31, 2018
2 parents 1799579 + c0deff1 commit 6b70332
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
7 changes: 7 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# DGtalTools 1.0

- *global*:
- Continuous integration AppVeyor fix.
(Bertrand Kerautret, [##337](https://github.com/DGtal-team/DGtalTools/pull/337)).


# DGtalTools 0.9.4

- *converters*
Expand Down
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
version: 0.9beta.{build}

environment:
BOOST_ROOT: "C:\\Libraries\\boost_1_59_0"
BOOST_ROOT: "C:\\Libraries\\boost_1_63_0"
matrix:
- VS_GEN: Visual Studio 14 2015
CONFIG: RelWithDebInfo
B_NAME: Win32
BOOST_LIBRARYDIR: "C:\\Libraries\\boost_1_59_0\\lib32-msvc-14.0"
BOOST_LIBRARYDIR: "C:\\Libraries\\boost_1_63_0\\lib32-msvc-14.0"
CONFIGQGL: Release
QTDIR: C:\Qt\5.4\msvc2013_opengl
QTDIR: "C:\\Qt\\5.6.3\\msvc2015"

# - VS_GEN: Visual Studio 14 2015 Win64
# CONFIG: Release
Expand Down
6 changes: 2 additions & 4 deletions visualisation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ foreach (FILE ${DGTAL_TOOLS_SRC})
ENDFOREACH(FILE)

if ( WITH_VISU3D_QGLVIEWER )

SET(DGTAL_EXAMPLES_QGL_SRC
set_property(SOURCE ui_sliceViewer.h PROPERTY SKIP_AUTOMOC ON)
SET(DGTAL_EXAMPLES_QGL_SRC
3dVolViewer
3dVolBoundaryViewer
3dCurveViewer
Expand Down Expand Up @@ -49,7 +49,6 @@ if ( WITH_VISU3D_QGLVIEWER )
if (WITH_QT4)
QT4_WRAP_UI(ui_sliceViewer_FORMS_HEADERS sliceViewer.ui)
QT4_WRAP_CPP(sliceViewer_HEADERS_MOC sliceViewer.h OPTIONS -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED)

add_executable(sliceViewer sliceViewer.cpp ${sliceViewer_HEADERS_MOC}
${ui_sliceViewer_FORMS_HEADERS})
target_link_libraries (sliceViewer ${DGTAL_LIBRARIES} ${DGtalToolsLibDependencies})
Expand All @@ -64,7 +63,6 @@ if ( WITH_VISU3D_QGLVIEWER )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Xml_EXECUTABLE_COMPILE_FLAGS}")
add_executable(sliceViewer sliceViewer.cpp ${ui_sliceViewer_FORMS_HEADERS})
target_link_libraries(sliceViewer ${DGTAL_LIBRARIES} ${DGtalToolsLibDependencies})
qt5_use_modules(sliceViewer Widgets OpenGL Xml)
endif (WITH_QT4)

install(TARGETS sliceViewer RUNTIME DESTINATION bin
Expand Down
1 change: 1 addition & 0 deletions visualisation/sliceViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ int main( int argc, char** argv )

QApplication application(argc,argv);
Viewer3D<> *viewer = new Viewer3D<>();
viewer->show();
bool usehm = vm.count("hueColorMap");
bool usegh = vm.count("gradHotColorMap");
bool usegc = vm.count("gradCoolColorMap");
Expand Down

0 comments on commit 6b70332

Please sign in to comment.