CMakeLists.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. add_executable(oatppAllTests
  2. oatpp/AllTestsMain.cpp
  3. oatpp/core/base/CommandLineArgumentsTest.cpp
  4. oatpp/core/base/CommandLineArgumentsTest.hpp
  5. oatpp/core/base/RegRuleTest.cpp
  6. oatpp/core/base/RegRuleTest.hpp
  7. oatpp/core/base/collection/LinkedListTest.cpp
  8. oatpp/core/base/collection/LinkedListTest.hpp
  9. oatpp/core/base/memory/MemoryPoolTest.cpp
  10. oatpp/core/base/memory/MemoryPoolTest.hpp
  11. oatpp/core/base/memory/PerfTest.cpp
  12. oatpp/core/base/memory/PerfTest.hpp
  13. oatpp/core/data/mapping/type/TypeTest.cpp
  14. oatpp/core/data/mapping/type/TypeTest.hpp
  15. oatpp/core/data/share/MemoryLabelTest.cpp
  16. oatpp/core/data/share/MemoryLabelTest.hpp
  17. oatpp/core/data/stream/ChunkedBufferTest.cpp
  18. oatpp/core/data/stream/ChunkedBufferTest.hpp
  19. oatpp/encoding/Base64Test.cpp
  20. oatpp/encoding/Base64Test.hpp
  21. oatpp/encoding/UnicodeTest.cpp
  22. oatpp/encoding/UnicodeTest.hpp
  23. oatpp/network/UrlTest.cpp
  24. oatpp/network/UrlTest.hpp
  25. oatpp/network/virtual_/InterfaceTest.cpp
  26. oatpp/network/virtual_/InterfaceTest.hpp
  27. oatpp/network/virtual_/PipeTest.cpp
  28. oatpp/network/virtual_/PipeTest.hpp
  29. oatpp/parser/json/mapping/DTOMapperPerfTest.cpp
  30. oatpp/parser/json/mapping/DTOMapperPerfTest.hpp
  31. oatpp/parser/json/mapping/DTOMapperTest.cpp
  32. oatpp/parser/json/mapping/DTOMapperTest.hpp
  33. oatpp/parser/json/mapping/DeserializerTest.cpp
  34. oatpp/parser/json/mapping/DeserializerTest.hpp
  35. oatpp/web/server/api/ApiControllerTest.cpp
  36. oatpp/web/server/api/ApiControllerTest.hpp
  37. oatpp/web/FullAsyncTest.cpp
  38. oatpp/web/FullAsyncTest.hpp
  39. oatpp/web/FullTest.cpp
  40. oatpp/web/FullTest.hpp
  41. oatpp/web/app/Client.hpp
  42. oatpp/web/app/Controller.hpp
  43. oatpp/web/app/ControllerAsync.hpp
  44. oatpp/web/app/DTOs.hpp
  45. oatpp/core/parser/CaretTest.cpp
  46. oatpp/core/parser/CaretTest.hpp
  47. )
  48. target_link_libraries(oatppAllTests PRIVATE oatpp PRIVATE oatpp-test)
  49. set_target_properties(oatppAllTests PROPERTIES
  50. CXX_STANDARD 11
  51. CXX_EXTENSIONS OFF
  52. CXX_STANDARD_REQUIRED ON
  53. )
  54. target_include_directories(oatppAllTests PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
  55. target_compile_definitions(oatppAllTests
  56. PRIVATE OATPP_ENABLE_ALL_TESTS_MAIN
  57. )
  58. add_test(oatppAllTests oatppAllTests)