0031568: Data Exchange - invalid model produced after STEP import
[occt.git] / samples / qt / FuncDemo / FuncDemo.pro
CommitLineData
aff5997d 1TEMPLATE = app
6396eacb 2CONFIG += debug_and_release qt
3
4TARGET = FuncDemo
5
4b3541c6 6SAMPLESROOT = $$quote($$(CSF_OCCTSamplesPath)/qt)
aff5997d 7
6396eacb 8HEADERS = src/*.h
9SOURCES = src/*.cpp
aff5997d 10
4b3541c6 11INCLUDEPATH += $$quote($$(CSF_OCCTIncludePath))
aff5997d 12
13OCCT_DEFINES = $$(CSF_DEFINES)
14
15DEFINES = $$split(OCCT_DEFINES, ;)
16
1fa16152 17RESOURCES += ./src/FuncDemo.qrc
18
aff5997d 19unix {
20 UNAME = $$system(uname -s)
21 LIBLIST = $$(LD_LIBRARY_PATH)
22 LIBPATHS = $$split(LIBLIST,":")
23 for(lib, LIBPATHS):LIBS += -L$${lib}
24
25 CONFIG(debug, debug|release) {
26 DESTDIR = ./$$UNAME/bind
27 OBJECTS_DIR = ./$$UNAME/objd
28 MOC_DIR = ./src
29 } else {
30 DESTDIR = ./$$UNAME/bin
31 OBJECTS_DIR = ./$$UNAME/obj
32 MOC_DIR = ./src
33 }
34
35 MACOSX_USE_GLX = $$(MACOSX_USE_GLX)
36
37 !macx | equals(MACOSX_USE_GLX, true): INCLUDEPATH += $$QMAKE_INCDIR_X11 $$QMAKE_INCDIR_OPENGL $$QMAKE_INCDIR_THREAD
38 equals(MACOSX_USE_GLX, true): DEFINES += MACOSX_USE_GLX
39 DEFINES += OCC_CONVERT_SIGNALS QT_NO_STL
40 !macx | equals(MACOSX_USE_GLX, true): LIBS += -L$$QMAKE_LIBDIR_X11 $$QMAKE_LIBS_X11 -L$$QMAKE_LIBDIR_OPENGL $$QMAKE_LIBS_OPENGL $$QMAKE_LIBS_THREAD
41 QMAKE_CXXFLAGS += -std=gnu++11
42}
43
44win32 {
45 CONFIG(debug, debug|release) {
46 DEFINES += _DEBUG
7e19e96a 47 DESTDIR = ./win$$(ARCH)/$$(VCVER)/bind
48 OBJECTS_DIR = ./win$$(ARCH)/$$(VCVER)/objd
aff5997d 49 MOC_DIR = ./src
aff5997d 50 } else {
51 DEFINES += NDEBUG
7e19e96a 52 DESTDIR = ./win$$(ARCH)/$$(VCVER)/bin
53 OBJECTS_DIR = ./win$$(ARCH)/$$(VCVER)/obj
aff5997d 54 MOC_DIR = ./src
aff5997d 55 }
4b3541c6 56 LIBS = -L$$(QTDIR)/lib;$$(CSF_OCCTLibPath)
aff5997d 57}
58
59LIBS += -lTKernel -lTKMath -lTKBRep -lTKGeomBase -lTKGeomAlgo -lTKG3d -lTKG2d \
60 -lTKTopAlgo -lTKMesh -lTKPrim -lTKCDF -lTKLCAF -lTKCAF -lTKBO
61
6396eacb 62lrelease.name = LRELEASE ${QMAKE_FILE_IN}
63lrelease.commands = lrelease ${QMAKE_FILE_IN} -qm $${RES_DIR}/${QMAKE_FILE_BASE}.qm
64lrelease.output = ${QMAKE_FILE_BASE}.qm
65lrelease.input = TS_FILES
66lrelease.clean = $${RES_DIR}/${QMAKE_FILE_BASE}.qm
67lrelease.CONFIG += no_link target_predeps
68QMAKE_EXTRA_COMPILERS += lrelease
69
70copy_res.name = Copy resource ${QMAKE_FILE_IN}
71copy_res.output = ${QMAKE_FILE_BASE}${QMAKE_FILE_EXT}
72copy_res.clean = $${RES_DIR}/${QMAKE_FILE_BASE}${QMAKE_FILE_EXT}
73copy_res.input = RES_FILES
74copy_res.CONFIG += no_link target_predeps
75win32: copy_res.commands = type ${QMAKE_FILE_IN} > $${RES_DIR}/${QMAKE_FILE_BASE}${QMAKE_FILE_EXT}
76unix: copy_res.commands = cp -f ${QMAKE_FILE_IN} $${RES_DIR}
77QMAKE_EXTRA_COMPILERS += copy_res
caee72a9 78QMAKE_EXTRA_COMPILERS += copy_res
6396eacb 79
aff5997d 80greaterThan(QT_MAJOR_VERSION, 4) {
81 QT += widgets
82}