1
0

Almond.pro 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2019-05-03T18:16:23
  4. #
  5. #-------------------------------------------------
  6. QT += core gui opengl xml
  7. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  8. TARGET = Almond
  9. TEMPLATE = app
  10. RC_ICONS = almond.ico
  11. # The following define makes your compiler emit warnings if you use
  12. # any feature of Qt which has been marked as deprecated (the exact warnings
  13. # depend on your compiler). Please consult the documentation of the
  14. # deprecated API in order to know how to port your code away from it.
  15. DEFINES += QT_DEPRECATED_WARNINGS
  16. # You can also make your code fail to compile if you use deprecated APIs.
  17. # In order to do so, uncomment the following line.
  18. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  19. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  20. CONFIG += c++17
  21. @CONFIG += debug_and_release@
  22. SOURCES += \
  23. Almond.cpp \
  24. Bitmap.cpp \
  25. Color.cpp \
  26. CubicSpline.cpp \
  27. Gradient.cpp \
  28. MandelVideoGenerator.cpp \
  29. MandelWidget.cpp \
  30. VideoStream.cpp \
  31. benchmarkdialog.cpp \
  32. exportdialogs.cpp \
  33. gradientchoosedialog.cpp \
  34. main.cpp
  35. HEADERS += \
  36. Almond.h \
  37. Bitmap.h \
  38. Color.h \
  39. CubicSpline.h \
  40. Gradient.h \
  41. MandelVideoGenerator.h \
  42. MandelWidget.h \
  43. VideoStream.h \
  44. benchmarkdialog.h \
  45. exportdialogs.h \
  46. gradientchoosedialog.h
  47. FORMS += \
  48. Almond.ui \
  49. benchmarks.ui \
  50. exportimagedialog.ui \
  51. exportvideodialog.ui \
  52. gradientchooser.ui
  53. # Default rules for deployment.
  54. qnx: target.path = /tmp/$${TARGET}/bin
  55. else: unix:!android: target.path = /opt/$${TARGET}/bin
  56. !isEmpty(target.path): INSTALLS += target
  57. win32:LIBS += -lopengl32
  58. else:LIBS += -lOpenGL
  59. win32:QMAKE_CXXFLAGS+= -openmp
  60. else:unix:QMAKE_CXXFLAGS+= -fopenmp
  61. win32:QMAKE_LFLAGS += -openmp
  62. else:unix:QMAKE_LFLAGS+= -fopenmp
  63. LIBS += -fopenmp
  64. unix:LIBS += -lm -latomic
  65. win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../libs/ffmpeg-4.1.1-win32-dev/lib/ -lavcodec
  66. else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../libs/ffmpeg-4.1.1-win32-dev/lib/ -lavcodec
  67. else:unix: LIBS += -L$$PWD/../libs/ffmpeg-4.1.1-win32-dev/lib/ -lavcodec
  68. INCLUDEPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  69. DEPENDPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  70. #win32:CONFIG(release, debug|release): LIBS += -L$$PWD/'../../../../../Program Files (x86)/AMD APP SDK/3.0/lib/x86/' -lOpenCL
  71. #else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/'../../../../../Program Files (x86)/AMD APP SDK/3.0/lib/x86/' -lOpenCL
  72. #else:unix: LIBS += -lOpenCL
  73. win32:INCLUDEPATH += $$PWD/'../../../../../Program Files (x86)/AMD APP SDK/3.0/include'
  74. win32:DEPENDPATH += $$PWD/'../../../../../Program Files (x86)/AMD APP SDK/3.0/include'
  75. win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../libs/ffmpeg-4.1.1-win32-dev/lib/ -lavformat
  76. else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../libs/ffmpeg-4.1.1-win32-dev/lib/ -lavformat
  77. else:unix: LIBS += -L$$PWD/../libs/ffmpeg-4.1.1-win32-dev/lib/ -lavformat
  78. #INCLUDEPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  79. #DEPENDPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  80. unix|win32: LIBS += -L$$PWD/../libs/ffmpeg-4.1.1-win32-dev/lib/ -lavdevice
  81. #INCLUDEPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  82. #DEPENDPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  83. unix|win32: LIBS += -L$$PWD/../libs/ffmpeg-4.1.1-win32-dev/lib/ -lavfilter
  84. #INCLUDEPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  85. #DEPENDPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  86. unix|win32: LIBS += -L$$PWD/../libs/ffmpeg-4.1.1-win32-dev/lib/ -lavutil
  87. #INCLUDEPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  88. #DEPENDPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  89. unix|win32: LIBS += -L$$PWD/../libs/ffmpeg-4.1.1-win32-dev/lib/ -lswscale
  90. #INCLUDEPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  91. #DEPENDPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  92. RESOURCES += Almond.qrc
  93. unix|win32: LIBS += -L$$PWD/libmandel/ -lmandel
  94. INCLUDEPATH += $$PWD/libmandel/include
  95. DEPENDPATH += $$PWD/libmandel/include
  96. win32:!win32-g++: PRE_TARGETDEPS += $$PWD/libmandel/mandel.lib
  97. else:unix|win32-g++: PRE_TARGETDEPS += $$PWD/libmandel/libmandel.a
  98. win32:CONFIG(release, debug|release): LIBS += -L$$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86/' -lopencl
  99. else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86/' -lopencl
  100. else:unix: LIBS += -lOpenCL
  101. win32:INCLUDEPATH += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/include'
  102. win32:DEPENDPATH += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/include'
  103. win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86/libopencl.a'
  104. else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86/libopencl.a'
  105. else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86/opencl.lib'
  106. else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86/opencl.lib'