summaryrefslogtreecommitdiff
path: root/cad/plugins/NanoVision-1/src/KDevelop/Plugins/RenderingEngines/OpenGL/Renderers/NXBallAndStickOpenGLRenderer/NXBallAndStickOpenGLRenderer.pro
blob: b41ba89eb4748487fab7fd6c346453d6d2b5ab30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76

TEMPLATE = lib
TARGET = NXBallAndStickOpenGLRenderer
DESTDIR = ../../../../../../../lib/

CONFIG += stl \
 opengl \
 dll \
 plugin \
 rtti \
 release

QT += opengl

HEADERS += ../../../../../../../include/Nanorex/Interface/NXRendererPlugin.h \
 ../../../../../../../include/Nanorex/Interface/NXSceneGraph.h \
 ../../../../../../Plugins/RenderingEngines/OpenGL/Renderers/NXBallAndStickOpenGLRenderer.h \
 ../../../../../../Plugins/RenderingEngines/OpenGL/NXOpenGLMaterial.h \
 ../../../../../../Plugins/RenderingEngines/OpenGL/NXOpenGLRendererPlugin.h \
 ../../../../../../../include/Nanorex/Interface/NXAtomData.h \
 ../../../../../../../include/Nanorex/Interface/NXBondData.h

SOURCES += ../../../../../../Plugins/RenderingEngines/OpenGL/Renderers/NXBallAndStickOpenGLRenderer.cpp

#QMAKE_CXXFLAGS_DEBUG += -DNX_DEBUG \
# -g \
# -O0 \
# -fno-inline

QMAKE_CXXFLAGS_RELEASE += -DNDEBUG -O2

TARGETDEPS += ../../../../../../../lib/libNXOpenGLSceneGraph.a \
  ../../../../../../../lib/libGLT.a \
  ../../../../../../../lib/libNanorexInterface.so \
  ../../../../../../../lib/libNanorexUtility.so

INCLUDEPATH += $(OPENBABEL_INCPATH) \
  ../../../../../../../include

#CONFIG(debug,debug|release){
#    TARGET = $$join(TARGET,,,_d)
#    PROJECTLIBS ~= s/(.+)/\1_d/g
#	TARGETDEPS ~= s/(.+).(a|so)/\1_d.\2/g
#}

LIBS += -L../../../../../../../lib/ \
  -lNanorexInterface \
  -lNanorexUtility \
  -lNXOpenGLSceneGraph \
  -lGLT \
  -lgle


unix {
    # Remove the "lib" from the start of the library
    QMAKE_POST_LINK = echo $(DESTDIR)$(TARGET) | sed -e \'s/\\(.*\\)lib\\(.*\\)\\(\\.so\\)/\1\2\3/\' | xargs cp $(DESTDIR)$(TARGET)
    QMAKE_CLEAN += $${DESTDIR}$${TARGET}.so $${DESTDIR}lib$${TARGET}.so
}

macx {
    TARGETDEPS ~= s/.so/.dylib/g
    QMAKE_POST_LINK ~= s/.so/.dylib/g
    QMAKE_CLEAN += $${DESTDIR}$${TARGET}.dylib
}

win32 {
    CONFIG -= dll
    CONFIG += staticlib
    TARGETDEPS ~= s/.so/.a/g
	
    # qmake puts these library declarations too early in the g++ command on win32
    LIBS += -lopengl32 -lglu32 -lgdi32 -luser32 
}