FIND_PACKAGE(SalomeCppUnit REQUIRED)
FIND_PACKAGE(SalomeDoxygen REQUIRED)
+# From GUI: part 1 (Qt must be checked before ParaView)
+FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui QtXml QtHelp)
+
# Specific to ParaVis:
FIND_PACKAGE(SalomeParaView)
IF(TARGET vtkTools)
# well with the VTK one (and GUI loads VTK):
FIND_PACKAGE(SalomeGUI REQUIRED)
-# From GUI:
+# From GUI: part 2
FIND_PACKAGE(SalomeCAS REQUIRED)
-FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui QtXml QtHelp)
-message("QT_INCLUDES ${QT_INCLUDES}")
-SET(_new_inc)
-FOREACH(_inc ${QT_INCLUDES})
- SET(_new_inc "${_new_inc} -I${_inc}")
-ENDFOREACH()
-SET(QT_INCLUDES "${_new_inc}")
-message("QT_INCLUDES ${QT_INCLUDES}")
-
FIND_PACKAGE(SalomeOpenGL REQUIRED)
FIND_PACKAGE(SalomeVTK REQUIRED)
FIND_PACKAGE(SalomeQwt REQUIRED)
${PROJECT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CAS_INCLUDE_DIRS}
- ${Boost_INCLUDE_DIRS})
+ ${Boost_INCLUDE_DIRS}
+ ${QT_INCLUDES}
+ )
INCLUDE(${QT_USE_FILE})
# Note that ParaView uses HDF5
SET(libPARAVIS_la_CPPFLAGS
-ftemplate-depth-32
- ${QT_INCLUDES}
${QT_ASSISTANT_INCLUDES}
${PYTHON_INCLUDES}
${CAS_CPPFLAGS}