UnitTests.pro 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2017-01-28T22:39:30
  4. #
  5. #-------------------------------------------------
  6. QT += network testlib xml
  7. QT -= gui
  8. TARGET = UnitTests
  9. CONFIG += console
  10. CONFIG -= app_bundle
  11. TEMPLATE = app
  12. CONFIG += c++11
  13. # The following define makes your compiler emit warnings if you use
  14. # any feature of Qt which as 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. SOURCES += \
  23. main.cpp \
  24. tests/tst_configuration.cpp \
  25. cwf/configuration.cpp \
  26. cwf/cppwebapplication.cpp \
  27. cwf/cppwebserver.cpp \
  28. cwf/cppwebcontroller.cpp \
  29. cwf/cstlcompiler.cpp \
  30. cwf/cstlcompilerattributes.cpp \
  31. cwf/cstlcompilerfor.cpp \
  32. cwf/cstlcompilerif.cpp \
  33. cwf/cstlcompilerimport.cpp \
  34. cwf/filemanager.cpp \
  35. cwf/filter.cpp \
  36. cwf/filterchain.cpp \
  37. cwf/httpparser.cpp \
  38. cwf/httpreadrequest.cpp \
  39. cwf/controller.cpp \
  40. cwf/request.cpp \
  41. cwf/response.cpp \
  42. cwf/session.cpp \
  43. cwf/metaclassparser.cpp \
  44. cwf/properties.cpp \
  45. cwf/qlistobject.cpp \
  46. cwf/requestdispatcher.cpp \
  47. cwf/urlencoder.cpp \
  48. tests/tst_cppwebapplication.cpp \
  49. tests/tst_cppwebserver.cpp \
  50. tests/tst_cppwebcontroller.cpp \
  51. tests/tst_cstlcompiler.cpp \
  52. tests/tst_cstlcompilerattributes.cpp \
  53. tests/tst_cstlcompilerfor.cpp \
  54. tests/tst_cstlcompilerif.cpp \
  55. tests/tst_cstlcompilerimport.cpp \
  56. tests/tst_cstlcompilerobject.cpp \
  57. tests/tst_filemanager.cpp \
  58. tests/tst_filter.cpp \
  59. tests/tst_filterchain.cpp \
  60. tests/tst_httpparser.cpp \
  61. tests/tst_httpreadrequest.cpp \
  62. tests/tst_response.cpp \
  63. tests/tst_session.cpp \
  64. tests/tst_metaclassparser.cpp \
  65. tests/tst_properties.cpp \
  66. tests/tst_qlistobject.cpp \
  67. tests/tst_qmapthreadsafety.cpp \
  68. tests/tst_requestdispatcher.cpp \
  69. tests/tst_urlencoder.cpp \
  70. tests/tst_request.cpp \
  71. tests/tst_cstlcompilerout.cpp \
  72. cwf/sslloader.cpp
  73. DEFINES += SRCDIR=\\\"$$PWD/\\\"
  74. HEADERS += \
  75. tests/tst_configuration.h \
  76. cwf/configuration.h \
  77. cwf/cppwebapplication.h \
  78. cwf/cppwebserver.h \
  79. cwf/cppwebcontroller.h \
  80. cwf/cstlcompiler.h \
  81. cwf/cstlcompilerattributes.h \
  82. cwf/cstlcompilerfor.h \
  83. cwf/cstlcompilerif.h \
  84. cwf/cstlcompilerimport.h \
  85. cwf/cstlcompilerobject.h \
  86. cwf/filemanager.h \
  87. cwf/filter.h \
  88. cwf/filterchain.h \
  89. cwf/httpparser.h \
  90. cwf/httpreadrequest.h \
  91. cwf/controller.h \
  92. cwf/request.h \
  93. cwf/response.h \
  94. cwf/session.h \
  95. cwf/metaclassparser.h \
  96. cwf/properties.h \
  97. cwf/qlistobject.h \
  98. cwf/qmapthreadsafety.h \
  99. cwf/requestdispatcher.h \
  100. cwf/urlencoder.h \
  101. tests/tst_cppwebapplication.h \
  102. tests/tst_cppwebserver.h \
  103. tests/tst_cstlcompiler.h \
  104. tests/tst_cstlcompilerattributes.h \
  105. tests/tst_cstlcompilerfor.h \
  106. tests/tst_cstlcompilerif.h \
  107. tests/tst_cstlcompilerimport.h \
  108. tests/tst_cstlcompilerobject.h \
  109. tests/tst_filemanager.h \
  110. tests/tst_filter.h \
  111. tests/tst_filterchain.h \
  112. tests/tst_httpparser.h \
  113. tests/tst_httpreadrequest.h \
  114. tests/tst_response.h \
  115. tests/tst_session.h \
  116. tests/tst_metaclassparser.h \
  117. tests/tst_properties.h \
  118. tests/tst_qlistobject.h \
  119. tests/tst_qmapthreadsafety.h \
  120. tests/tst_requestdispatcher.h \
  121. tests/tst_urlencoder.h \
  122. tests/tst_request.h \
  123. cwf/constants.h \
  124. cwf/cppwebframework_global.h \
  125. tests/tst_cppwebcontroller.h \
  126. cwf/variant.h \
  127. tests/tst_cstlcompilerout.h \
  128. cwf/sslloader.h
  129. QMAKE_CXXFLAGS += -g -Wall -fprofile-arcs -ftest-coverage -O0
  130. QMAKE_LFLAGS += -g -Wall -fprofile-arcs -ftest-coverage -O0
  131. LIBS += -lgcov