gazetk / GazeTkHub / GazeTkLib / GazeTkLib.pro @ fba08427
History | View | Annotate | Download (1.129 KB)
1 |
#------------------------------------------------- |
---|---|
2 |
# |
3 |
# Project created by QtCreator 2015-10-27T12:47:38 |
4 |
# |
5 |
#------------------------------------------------- |
6 |
# Check if the config file exists |
7 |
! include( ../common.pri ) { |
8 |
error( "Couldn't find the common.pri file!" ) |
9 |
} |
10 |
|
11 |
QT += network xml multimedia widgets core gui |
12 |
#QT -= gui |
13 |
|
14 |
INCLUDEPATH += include |
15 |
|
16 |
TARGET = GazeTkLib |
17 |
TEMPLATE = lib |
18 |
CONFIG += staticlib |
19 |
CONFIG += create_prl link_prl |
20 |
|
21 |
DESTDIR = $${DESTDIR}/lib |
22 |
|
23 |
SOURCES += src/gazetklib.cpp \ |
24 |
src/pluginloader.cpp |
25 |
|
26 |
HEADERS += include/GazeTkLib.h \ |
27 |
include/gazetkinterfaces.h \ |
28 |
include/pluginloader.h |
29 |
|
30 |
# The following code did not work under Windows with different configurations |
31 |
#headers.files = $$HEADERS |
32 |
#headers.path = D:\include |
33 |
#INSTALLS += headers |
34 |
|
35 |
QMAKE_EXTRA_TARGETS += copyheaders |
36 |
POST_TARGETDEPS += copyheaders |
37 |
|
38 |
copyheaders.commands += mkdir "$$shell_path($${DESTDIR}/../include)" & mkdir "$$shell_path($${DESTDIR}/../include/GazeTkLib)" & |
39 |
copyheaders.commands += copy /Y "$$shell_path($${PWD}/include/*.h)" "$$shell_path($${DESTDIR}/../include/GazeTkLib)" |
40 |
|
41 |
unix { |
42 |
target.path = /usr/lib |
43 |
INSTALLS += target |
44 |
} |