Exposing GUI_INCLUDE_DIRS in config
# TODO: should be done like Sphinx in KERNEL (i.e. generating a shell script)?
IF(WIN32 AND NOT CYGWIN)
MESSAGE(WARNING "PyQt4 command was not tested under Win32")
- SET(PYQT_PYUIC_EXECUTABLE set PYTHONPATH=${PYQT_PYTHONPATH};${SIP_PYTHONPATH} && ${PYQT_PYUIC_PATH})
+ SET(PYQT_PYUIC_EXECUTABLE set PYTHONPATH=${PYQT_PYTHONPATH};${SIP_PYTHONPATH};%PYTHONPATH% && ${PYQT_PYUIC_PATH})
ELSE()
SET(PYQT_PYUIC_EXECUTABLE
- /usr/bin/env PYTHONPATH=${PYQT_PYTHONPATH}:${SIP_PYTHONPATH}:${PYTHONPATH} ${PYQT_PYUIC_PATH})
+ /usr/bin/env PYTHONPATH="${PYQT_PYTHONPATH}:${SIP_PYTHONPATH}:$$PYTHONPATH" ${PYQT_PYUIC_PATH})
ENDIF()
# Package root dir:
SET_AND_CHECK(GUI_ROOT_DIR_EXP "@PACKAGE_CMAKE_INSTALL_PREFIX@")
+# Include directories
+SET_AND_CHECK(GUI_INCLUDE_DIRS "${GUI_ROOT_DIR_EXP}/@SALOME_INSTALL_HEADERS@")
+
#### Now the specificities
# Options exported by the package:
OUTPUT ${output}
COMMAND ${PYQT_PYUIC_EXECUTABLE} -o ${output} ${input}
MAIN_DEPENDENCY ${input}
- VERBATIM
)
#${PYQT_PYUIC_EXECUTABLE}
ENDFOREACH(output ${PYUIC_FILES})