summaryrefslogtreecommitdiffstats
path: root/tests/HTTP/CMakeLists.txt
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-10-15 11:35:44 +0200
committerGitHub <noreply@github.com>2020-10-15 11:35:44 +0200
commita145980795a4f37ebb9857bddb7427a184bbd6dd (patch)
treefb7ec4db18b92590b5036885c1dc39c3d42f83ca /tests/HTTP/CMakeLists.txt
parentAdded missing return types and fixed param types (#4996) (diff)
downloadcuberite-a145980795a4f37ebb9857bddb7427a184bbd6dd.tar
cuberite-a145980795a4f37ebb9857bddb7427a184bbd6dd.tar.gz
cuberite-a145980795a4f37ebb9857bddb7427a184bbd6dd.tar.bz2
cuberite-a145980795a4f37ebb9857bddb7427a184bbd6dd.tar.lz
cuberite-a145980795a4f37ebb9857bddb7427a184bbd6dd.tar.xz
cuberite-a145980795a4f37ebb9857bddb7427a184bbd6dd.tar.zst
cuberite-a145980795a4f37ebb9857bddb7427a184bbd6dd.zip
Diffstat (limited to 'tests/HTTP/CMakeLists.txt')
-rw-r--r--tests/HTTP/CMakeLists.txt42
1 files changed, 21 insertions, 21 deletions
diff --git a/tests/HTTP/CMakeLists.txt b/tests/HTTP/CMakeLists.txt
index d252801c0..0e52d75f2 100644
--- a/tests/HTTP/CMakeLists.txt
+++ b/tests/HTTP/CMakeLists.txt
@@ -1,33 +1,33 @@
-include_directories(${CMAKE_SOURCE_DIR}/src/)
-include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/lib/mbedtls/include)
+include_directories(${PROJECT_SOURCE_DIR}/src/)
+include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/lib/mbedtls/include)
# Create a single HTTP library that contains all the HTTP code:
set (HTTP_SRCS
- ${CMAKE_SOURCE_DIR}/src/HTTP/EnvelopeParser.cpp
- ${CMAKE_SOURCE_DIR}/src/HTTP/HTTPMessage.cpp
- ${CMAKE_SOURCE_DIR}/src/HTTP/HTTPMessageParser.cpp
- ${CMAKE_SOURCE_DIR}/src/HTTP/TransferEncodingParser.cpp
- ${CMAKE_SOURCE_DIR}/src/HTTP/UrlClient.cpp
- ${CMAKE_SOURCE_DIR}/src/HTTP/UrlParser.cpp
- ${CMAKE_SOURCE_DIR}/src/OSSupport/StackTrace.cpp
- ${CMAKE_SOURCE_DIR}/src/OSSupport/WinStackWalker.cpp
- ${CMAKE_SOURCE_DIR}/src/StringUtils.cpp
+ ${PROJECT_SOURCE_DIR}/src/HTTP/EnvelopeParser.cpp
+ ${PROJECT_SOURCE_DIR}/src/HTTP/HTTPMessage.cpp
+ ${PROJECT_SOURCE_DIR}/src/HTTP/HTTPMessageParser.cpp
+ ${PROJECT_SOURCE_DIR}/src/HTTP/TransferEncodingParser.cpp
+ ${PROJECT_SOURCE_DIR}/src/HTTP/UrlClient.cpp
+ ${PROJECT_SOURCE_DIR}/src/HTTP/UrlParser.cpp
+ ${PROJECT_SOURCE_DIR}/src/OSSupport/StackTrace.cpp
+ ${PROJECT_SOURCE_DIR}/src/OSSupport/WinStackWalker.cpp
+ ${PROJECT_SOURCE_DIR}/src/StringUtils.cpp
)
set (HTTP_HDRS
- ${CMAKE_SOURCE_DIR}/src/HTTP/EnvelopeParser.h
- ${CMAKE_SOURCE_DIR}/src/HTTP/HTTPMessage.h
- ${CMAKE_SOURCE_DIR}/src/HTTP/HTTPMessageParser.h
- ${CMAKE_SOURCE_DIR}/src/HTTP/TransferEncodingParser.h
- ${CMAKE_SOURCE_DIR}/src/HTTP/UrlClient.h
- ${CMAKE_SOURCE_DIR}/src/HTTP/UrlParser.h
- ${CMAKE_SOURCE_DIR}/src/OSSupport/StackTrace.h
- ${CMAKE_SOURCE_DIR}/src/OSSupport/WinStackWalker.h
- ${CMAKE_SOURCE_DIR}/src/StringUtils.h
+ ${PROJECT_SOURCE_DIR}/src/HTTP/EnvelopeParser.h
+ ${PROJECT_SOURCE_DIR}/src/HTTP/HTTPMessage.h
+ ${PROJECT_SOURCE_DIR}/src/HTTP/HTTPMessageParser.h
+ ${PROJECT_SOURCE_DIR}/src/HTTP/TransferEncodingParser.h
+ ${PROJECT_SOURCE_DIR}/src/HTTP/UrlClient.h
+ ${PROJECT_SOURCE_DIR}/src/HTTP/UrlParser.h
+ ${PROJECT_SOURCE_DIR}/src/OSSupport/StackTrace.h
+ ${PROJECT_SOURCE_DIR}/src/OSSupport/WinStackWalker.h
+ ${PROJECT_SOURCE_DIR}/src/StringUtils.h
)
set (SHARED_SRCS
- ${CMAKE_SOURCE_DIR}/src/OSSupport/Event.cpp
+ ${PROJECT_SOURCE_DIR}/src/OSSupport/Event.cpp
)
add_library(HTTP