Almond.pro 5.3 KB

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