Almond.pro 5.4 KB

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