mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
The following implementation has been made: - CMake procedure is extended to compile Qt tools. This is optional and is handled by USE_QT_TOOLS option(OFF by default) - It is possible to build Qt tools using Qt5 or Qt4, it is settled with USE_QT4 option. - Sample of DFBrowser tool is available in samples/tools/TInspectorEXE. It is build with tools, executable is placed in binaries. To start the sample, use dfbrowser.bat command. - DFBrowser tool may be started from DRAW
37 lines
1.5 KiB
Bash
37 lines
1.5 KiB
Bash
#!/bin/bash
|
|
|
|
if [ "$1" == "@BIN_LETTER@" ]; then
|
|
if [ "$2" == "@COMPILER_BITNESS@" ]; then
|
|
# set environment variables used by OCCT
|
|
export CSF_FPE=@BUILD_ENABLE_FPE_SIGNAL_HANDLER@
|
|
|
|
export TCL_DIR="@USED_3RDPARTY_TCL_DIR@"
|
|
export TK_DIR="@USED_3RDPARTY_TK_DIR@"
|
|
export FREETYPE_DIR="@USED_3RDPARTY_FREETYPE_DIR@"
|
|
export FREEIMAGE_DIR="@USED_3RDPARTY_FREEIMAGE_DIRS@"
|
|
export GL2PS_DIR="@USED_3RDPARTY_GL2PS_DIRS@"
|
|
export TBB_DIR="@USED_3RDPARTY_TBB_DIR@"
|
|
export VTK_DIR="@USED_3RDPARTY_VTK_DIR@"
|
|
|
|
if [ "x@USED_3RDPARTY_QT_DIR@" != "x" ]; then
|
|
export QTDIR="@USED_3RDPARTY_QT_DIR@"
|
|
fi
|
|
|
|
export TCL_VERSION_WITH_DOT="@3RDPARTY_TCL_LIBRARY_VERSION_WITH_DOT@"
|
|
export TK_VERSION_WITH_DOT="@3RDPARTY_TK_LIBRARY_VERSION_WITH_DOT@"
|
|
|
|
export CSF_OCCTBinPath="@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_BIN@"
|
|
export CSF_OCCTLibPath="@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_LIB@"
|
|
export CSF_OCCTIncludePath="@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_INCLUDE@"
|
|
export CSF_OCCTResourcePath="@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_RESOURCE@"
|
|
export CSF_OCCTDataPath="@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_DATA@"
|
|
export CSF_OCCTSamplesPath="@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_SAMPLES@"
|
|
export CSF_OCCTTestsPath="@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_TESTS@"
|
|
export CSF_OCCTDocPath="@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_DOC@"
|
|
|
|
# for compatability with external application using CASROOT
|
|
export CASROOT="@INSTALL_DIR_ABSOLUTE@"
|
|
fi
|
|
fi
|
|
|