Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-------------------------------------------------
- #
- # Project created by QtCreator 2018-05-18T16:59:59
- #
- #-------------------------------------------------
- QT += core gui
- greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
- TARGET = MyProject
- TEMPLATE = app
- CONFIG += console
- #CONFIG -= app_bundle
- # Define output directories
- DESTDIR = release
- OBJECTS_DIR = release/obj
- CUDA_OBJECTS_DIR = release/cuda
- # Source files
- SOURCES += main.cpp
- # This makes the .cu files appear in your project
- OTHER_FILES += vectorAddition.cu
- # CUDA settings <-- may change depending on your system
- CUDA_SOURCES += vectorAddition.cu
- CUDA_DIR = "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.1" # Path to cuda toolkit install
- SYSTEM_NAME = x64 # Depending on your system either 'Win32', 'x64', or 'Win64'
- SYSTEM_TYPE = 64 # '32' or '64', depending on your system
- CUDA_ARCH = sm_52 # Type of CUDA architecture, for example 'compute_10', 'compute_11', 'sm_10'
- NVCC_OPTIONS = --use_fast_math
- # include paths
- INCLUDEPATH += $$CUDA_DIR/include \
- $$CUDA_SDK/common/inc/ \
- $$CUDA_SDK/../shared/inc/
- # library directories
- QMAKE_LIBDIR += $$CUDA_DIR/lib/$$SYSTEM_NAME \
- $$CUDA_SDK/common/lib/$$SYSTEM_NAME \
- $$CUDA_SDK/../shared/lib/$$SYSTEM_NAME
- # Add the necessary libraries
- LIBS += -lcuda -lcudart
- # The following library conflicts with something in Cuda
- QMAKE_LFLAGS_RELEASE = /NODEFAULTLIB:msvcrt.lib
- QMAKE_LFLAGS_DEBUG = /NODEFAULTLIB:msvcrtd.lib
- # The following makes sure all path names (which often include spaces) are put between quotation marks
- CUDA_INC = $$join(INCLUDEPATH,'" -I"','-I"','"')
- # Configuration of the Cuda compiler
- # Release mode
- cuda.input = CUDA_SOURCES
- cuda.output = $$CUDA_OBJECTS_DIR/${QMAKE_FILE_BASE}_cuda.o
- cuda.commands = $$CUDA_DIR/bin/nvcc.exe $$NVCC_OPTIONS $$CUDA_INC $$LIBS --machine $$SYSTEM_TYPE -arch=$$CUDA_ARCH -c -o ${QMAKE_FILE_OUT} ${QMAKE_FILE_NAME}
- cuda.dependency_type = TYPE_C
- QMAKE_EXTRA_COMPILERS += cuda
- # The following define makes your compiler emit warnings if you use
- # any feature of Qt which has been marked as deprecated (the exact warnings
- # depend on your compiler). Please consult the documentation of the
- # deprecated API in order to know how to port your code away from it.
- DEFINES += QT_DEPRECATED_WARNINGS
- # You can also make your code fail to compile if you use deprecated APIs.
- # In order to do so, uncomment the following line.
- # You can also select to disable deprecated APIs only up to a certain version of Qt.
- #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
- SOURCES += \
- main.cpp \
- MyGUI.cpp \
- HEADERS += \
- MyGUI.h \
- curl/curl.h \
- curl/curlver.h \
- curl/easy.h \
- curl/mprintf.h \
- curl/multi.h \
- curl/stdcheaders.h \
- curl/system.h \
- curl/typecheck-gcc.h \
- nlohmann/adl_serializer.hpp \
- nlohmann/json.hpp \
- nlohmann/json_fwd.hpp \
- nlohmann/detail/exceptions.hpp \
- nlohmann/detail/json_pointer.hpp \
- nlohmann/detail/json_ref.hpp \
- nlohmann/detail/macro_scope.hpp \
- nlohmann/detail/macro_unscope.hpp \
- nlohmann/detail/meta.hpp \
- nlohmann/detail/value_t.hpp \
- nlohmann/detail/output/binary_writer.hpp \
- nlohmann/detail/output/output_adapters.hpp \
- nlohmann/detail/output/serializer.hpp \
- nlohmann/detail/iterators/internal_iterator.hpp \
- nlohmann/detail/iterators/iter_impl.hpp \
- nlohmann/detail/iterators/iteration_proxy.hpp \
- nlohmann/detail/iterators/json_reverse_iterator.hpp \
- nlohmann/detail/iterators/primitive_iterator.hpp \
- nlohmann/detail/input/binary_reader.hpp \
- nlohmann/detail/input/input_adapters.hpp \
- nlohmann/detail/input/lexer.hpp \
- nlohmann/detail/input/parser.hpp \
- nlohmann/detail/conversions/from_json.hpp \
- nlohmann/detail/conversions/to_chars.hpp \
- nlohmann/detail/conversions/to_json.hpp \
- FORMS += \
- MyGUI.ui
- #INCLUDEPATH += $$PWD/.
- #DEPENDPATH += $$PWD/.
- DISTFILES += \
- libcurl.lib
- win32:CONFIG(release, debug|release): LIBS += -L$$PWD/./ -llibcurl
- else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/./ -llibcurld
- INCLUDEPATH += $$PWD/.
- DEPENDPATH += $$PWD/.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement