CMakeLists.txt 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. #######################################################################################################
  2. ## oatpp
  3. add_library(oatpp
  4. oatpp/algorithm/CRC.cpp
  5. oatpp/algorithm/CRC.hpp
  6. oatpp/codegen/codegen_define_ApiClient_.hpp
  7. oatpp/codegen/codegen_define_ApiController_.hpp
  8. oatpp/codegen/codegen_define_DTO_.hpp
  9. oatpp/codegen/codegen_undef_ApiClient_.hpp
  10. oatpp/codegen/codegen_undef_ApiController_.hpp
  11. oatpp/codegen/codegen_undef_DTO_.hpp
  12. oatpp/core/Types.cpp
  13. oatpp/core/Types.hpp
  14. oatpp/core/async/Coroutine.cpp
  15. oatpp/core/async/Coroutine.hpp
  16. oatpp/core/async/Executor.cpp
  17. oatpp/core/async/Executor.hpp
  18. oatpp/core/async/Processor.cpp
  19. oatpp/core/async/Processor.hpp
  20. oatpp/core/base/CommandLineArguments.cpp
  21. oatpp/core/base/CommandLineArguments.hpp
  22. oatpp/core/base/Config.hpp
  23. oatpp/core/base/Controllable.cpp
  24. oatpp/core/base/Controllable.hpp
  25. oatpp/core/base/Environment.cpp
  26. oatpp/core/base/Environment.hpp
  27. oatpp/core/base/StrBuffer.cpp
  28. oatpp/core/base/StrBuffer.hpp
  29. oatpp/core/base/memory/Allocator.cpp
  30. oatpp/core/base/memory/Allocator.hpp
  31. oatpp/core/base/memory/MemoryPool.cpp
  32. oatpp/core/base/memory/MemoryPool.hpp
  33. oatpp/core/base/memory/ObjectPool.cpp
  34. oatpp/core/base/memory/ObjectPool.hpp
  35. oatpp/core/collection/FastQueue.cpp
  36. oatpp/core/collection/FastQueue.hpp
  37. oatpp/core/collection/LinkedList.cpp
  38. oatpp/core/collection/LinkedList.hpp
  39. oatpp/core/collection/ListMap.cpp
  40. oatpp/core/collection/ListMap.hpp
  41. oatpp/core/concurrency/Runnable.cpp
  42. oatpp/core/concurrency/Runnable.hpp
  43. oatpp/core/concurrency/SpinLock.cpp
  44. oatpp/core/concurrency/SpinLock.hpp
  45. oatpp/core/concurrency/Thread.cpp
  46. oatpp/core/concurrency/Thread.hpp
  47. oatpp/core/data/buffer/FIFOBuffer.cpp
  48. oatpp/core/data/buffer/FIFOBuffer.hpp
  49. oatpp/core/data/buffer/IOBuffer.cpp
  50. oatpp/core/data/buffer/IOBuffer.hpp
  51. oatpp/core/data/mapping/ObjectMapper.cpp
  52. oatpp/core/data/mapping/ObjectMapper.hpp
  53. oatpp/core/data/mapping/type/List.cpp
  54. oatpp/core/data/mapping/type/List.hpp
  55. oatpp/core/data/mapping/type/ListMap.cpp
  56. oatpp/core/data/mapping/type/ListMap.hpp
  57. oatpp/core/data/mapping/type/Object.cpp
  58. oatpp/core/data/mapping/type/Object.hpp
  59. oatpp/core/data/mapping/type/Primitive.cpp
  60. oatpp/core/data/mapping/type/Primitive.hpp
  61. oatpp/core/data/mapping/type/Type.cpp
  62. oatpp/core/data/mapping/type/Type.hpp
  63. oatpp/core/data/share/MemoryLabel.cpp
  64. oatpp/core/data/share/MemoryLabel.hpp
  65. oatpp/core/data/stream/ChunkedBuffer.cpp
  66. oatpp/core/data/stream/ChunkedBuffer.hpp
  67. oatpp/core/data/stream/Delegate.cpp
  68. oatpp/core/data/stream/Delegate.hpp
  69. oatpp/core/data/stream/Stream.cpp
  70. oatpp/core/data/stream/Stream.hpp
  71. oatpp/core/data/stream/StreamBufferedProxy.cpp
  72. oatpp/core/data/stream/StreamBufferedProxy.hpp
  73. oatpp/core/macro/basic.hpp
  74. oatpp/core/macro/codegen.hpp
  75. oatpp/core/macro/component.hpp
  76. oatpp/core/os/io/Library.cpp
  77. oatpp/core/os/io/Library.hpp
  78. oatpp/core/parser/ParsingCaret.cpp
  79. oatpp/core/parser/ParsingCaret.hpp
  80. oatpp/core/utils/ConversionUtils.cpp
  81. oatpp/core/utils/ConversionUtils.hpp
  82. oatpp/encoding/Base64.cpp
  83. oatpp/encoding/Base64.hpp
  84. oatpp/encoding/Hex.cpp
  85. oatpp/encoding/Hex.hpp
  86. oatpp/encoding/Unicode.cpp
  87. oatpp/encoding/Unicode.hpp
  88. oatpp/network/Connection.cpp
  89. oatpp/network/Connection.hpp
  90. oatpp/network/ConnectionProvider.cpp
  91. oatpp/network/ConnectionProvider.hpp
  92. oatpp/network/Url.cpp
  93. oatpp/network/Url.hpp
  94. oatpp/network/client/SimpleTCPConnectionProvider.cpp
  95. oatpp/network/client/SimpleTCPConnectionProvider.hpp
  96. oatpp/network/server/ConnectionHandler.cpp
  97. oatpp/network/server/ConnectionHandler.hpp
  98. oatpp/network/server/Server.cpp
  99. oatpp/network/server/Server.hpp
  100. oatpp/network/server/SimpleTCPConnectionProvider.cpp
  101. oatpp/network/server/SimpleTCPConnectionProvider.hpp
  102. oatpp/network/virtual_/Interface.cpp
  103. oatpp/network/virtual_/Interface.hpp
  104. oatpp/network/virtual_/Pipe.cpp
  105. oatpp/network/virtual_/Pipe.hpp
  106. oatpp/network/virtual_/Socket.cpp
  107. oatpp/network/virtual_/Socket.hpp
  108. oatpp/network/virtual_/client/ConnectionProvider.cpp
  109. oatpp/network/virtual_/client/ConnectionProvider.hpp
  110. oatpp/network/virtual_/server/ConnectionProvider.cpp
  111. oatpp/network/virtual_/server/ConnectionProvider.hpp
  112. oatpp/parser/json/Utils.cpp
  113. oatpp/parser/json/Utils.hpp
  114. oatpp/parser/json/mapping/Deserializer.cpp
  115. oatpp/parser/json/mapping/Deserializer.hpp
  116. oatpp/parser/json/mapping/ObjectMapper.cpp
  117. oatpp/parser/json/mapping/ObjectMapper.hpp
  118. oatpp/parser/json/mapping/Serializer.cpp
  119. oatpp/parser/json/mapping/Serializer.hpp
  120. oatpp/web/client/ApiClient.cpp
  121. oatpp/web/client/ApiClient.hpp
  122. oatpp/web/client/HttpRequestExecutor.cpp
  123. oatpp/web/client/HttpRequestExecutor.hpp
  124. oatpp/web/client/RequestExecutor.cpp
  125. oatpp/web/client/RequestExecutor.hpp
  126. oatpp/web/protocol/CommunicationError.cpp
  127. oatpp/web/protocol/CommunicationError.hpp
  128. oatpp/web/protocol/http/Http.cpp
  129. oatpp/web/protocol/http/Http.hpp
  130. oatpp/web/protocol/http/incoming/BodyDecoder.cpp
  131. oatpp/web/protocol/http/incoming/BodyDecoder.hpp
  132. oatpp/web/protocol/http/incoming/Request.cpp
  133. oatpp/web/protocol/http/incoming/Request.hpp
  134. oatpp/web/protocol/http/incoming/RequestHeadersReader.cpp
  135. oatpp/web/protocol/http/incoming/RequestHeadersReader.hpp
  136. oatpp/web/protocol/http/incoming/Response.cpp
  137. oatpp/web/protocol/http/incoming/Response.hpp
  138. oatpp/web/protocol/http/incoming/ResponseHeadersReader.cpp
  139. oatpp/web/protocol/http/incoming/ResponseHeadersReader.hpp
  140. oatpp/web/protocol/http/incoming/SimpleBodyDecoder.cpp
  141. oatpp/web/protocol/http/incoming/SimpleBodyDecoder.hpp
  142. oatpp/web/protocol/http/outgoing/Body.cpp
  143. oatpp/web/protocol/http/outgoing/Body.hpp
  144. oatpp/web/protocol/http/outgoing/BufferBody.cpp
  145. oatpp/web/protocol/http/outgoing/BufferBody.hpp
  146. oatpp/web/protocol/http/outgoing/ChunkedBufferBody.cpp
  147. oatpp/web/protocol/http/outgoing/ChunkedBufferBody.hpp
  148. oatpp/web/protocol/http/outgoing/CommunicationUtils.cpp
  149. oatpp/web/protocol/http/outgoing/CommunicationUtils.hpp
  150. oatpp/web/protocol/http/outgoing/DtoBody.cpp
  151. oatpp/web/protocol/http/outgoing/DtoBody.hpp
  152. oatpp/web/protocol/http/outgoing/Request.cpp
  153. oatpp/web/protocol/http/outgoing/Request.hpp
  154. oatpp/web/protocol/http/outgoing/Response.cpp
  155. oatpp/web/protocol/http/outgoing/Response.hpp
  156. oatpp/web/protocol/http/outgoing/ResponseFactory.cpp
  157. oatpp/web/protocol/http/outgoing/ResponseFactory.hpp
  158. oatpp/web/server/AsyncHttpConnectionHandler.cpp
  159. oatpp/web/server/AsyncHttpConnectionHandler.hpp
  160. oatpp/web/server/HttpConnectionHandler.cpp
  161. oatpp/web/server/HttpConnectionHandler.hpp
  162. oatpp/web/server/HttpProcessor.cpp
  163. oatpp/web/server/HttpProcessor.hpp
  164. oatpp/web/server/HttpRouter.cpp
  165. oatpp/web/server/HttpRouter.hpp
  166. oatpp/web/server/api/ApiController.cpp
  167. oatpp/web/server/api/ApiController.hpp
  168. oatpp/web/server/api/Endpoint.cpp
  169. oatpp/web/server/api/Endpoint.hpp
  170. oatpp/web/server/handler/ErrorHandler.cpp
  171. oatpp/web/server/handler/ErrorHandler.hpp
  172. oatpp/web/server/handler/Interceptor.cpp
  173. oatpp/web/server/handler/Interceptor.hpp
  174. oatpp/web/url/mapping/Pattern.cpp
  175. oatpp/web/url/mapping/Pattern.hpp
  176. oatpp/web/url/mapping/Router.cpp
  177. oatpp/web/url/mapping/Router.hpp
  178. oatpp/web/url/mapping/Subscriber.cpp
  179. oatpp/web/url/mapping/Subscriber.hpp
  180. )
  181. set_target_properties(oatpp PROPERTIES
  182. CXX_STANDARD 11
  183. CXX_EXTENSIONS OFF
  184. CXX_STANDARD_REQUIRED ON
  185. )
  186. set(CMAKE_THREAD_PREFER_PTHREAD ON)
  187. find_package(Threads REQUIRED)
  188. target_link_libraries(oatpp PUBLIC ${CMAKE_THREAD_LIBS_INIT})
  189. target_include_directories(oatpp PUBLIC
  190. $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
  191. )
  192. #######################################################################################################
  193. ## oatpp-test
  194. add_library(oatpp-test
  195. oatpp-test/Checker.cpp
  196. oatpp-test/Checker.hpp
  197. oatpp-test/UnitTest.cpp
  198. oatpp-test/UnitTest.hpp
  199. )
  200. set_target_properties(oatpp-test PROPERTIES
  201. CXX_STANDARD 11
  202. CXX_EXTENSIONS OFF
  203. CXX_STANDARD_REQUIRED ON
  204. )
  205. target_link_libraries(oatpp-test PUBLIC oatpp)
  206. target_include_directories(oatpp-test PUBLIC
  207. $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
  208. )
  209. add_dependencies(oatpp-test oatpp)
  210. #######################################################################################################
  211. ## INSTALL TARGETS
  212. if(OATPP_INSTALL)
  213. include("module-install.cmake")
  214. endif()