-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cuda.pro
51 lines (49 loc) · 1.61 KB
/
Cuda.pro
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
# #####################################################################
# Automatically generated by qmake (2.01a) Di 10. Mai 15:51:01 2011
# #####################################################################
TEMPLATE = app
TARGET = Cuda
DEPENDPATH += . \
encoder \
nvidiaheader
INCLUDEPATH += .
CONFIG += console
# Input
HEADERS += nvidiaheader/mywindows.h \
nvidiaheader/NVEncodeDataTypes.h \
nvidiaheader/NVEncoderAPI.h \
encoder/EncoderHandler.h \
encoder/EncoderParameter.h \
encoder/MyTimer.h
SOURCES += main.cpp \
encoder/EncoderHandler.cpp \
encoder/EncoderParameter.cpp \
encoder/MyTimer.cpp
QMAKE_LIBDIR += $${PWD}/lib
win32-msvc* {
message(Building for Windows using Qt $$QT_VERSION)
CONFIG += c++11 # C++11 support
QMAKE_CXXFLAGS += /bigobj # allow big objects
!contains(QMAKE_HOST.arch, x86_64):QMAKE_LFLAGS += /LARGEADDRESSAWARE # allow the use more of than 2GB of RAM on 32bit Windows
# # add during static build
# QMAKE_CFLAGS_RELEASE += -MT
# QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -MT
# QMAKE_CFLAGS_DEBUG = -Zi -MTd
# QMAKE_LFLAGS += /DYNAMICBASE:NO
# for Windows XP compatibility
contains(QMAKE_HOST.arch, x86_64):QMAKE_LFLAGS += /SUBSYSTEM:WINDOWS,5.02 # Windows XP 64bit
else:QMAKE_LFLAGS += /SUBSYSTEM:WINDOWS,5.01 # Windows XP 32bit
}
greaterThan(QT_MAJOR_VERSION, 4) { # QT5+
win32-msvc*:DEFINES += NOMINMAX
}
win32 {
!contains(QMAKE_HOST.arch, x86_64) {
message("x86 build")
LIBS += $${PWD}/lib/nvcuvenc.lib
}
else {
message("x86_64 build")
LIBS += $${PWD}/lib/nvcuvenc64.lib
}
}