Skip to content
This repository was archived by the owner on Oct 28, 2020. It is now read-only.

Feature/arangodb devel #26

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ include_directories(${OPENSSL_INCLUDE_DIR})

find_package(Threads REQUIRED)

find_package(Boost REQUIRED COMPONENTS "system" "thread")
find_package(Boost 1.71.0 REQUIRED COMPONENTS "system" "thread")

if(VELOCYPACK_SOURCE_DIR)
option(BuildVelocyPackExamples "Build examples" OFF)
Expand All @@ -48,7 +48,8 @@ add_library(fuerte STATIC
src/GeneralConnection.cpp
src/helper.cpp
src/http.cpp
src/HttpConnection.cpp
src/H1Connection.cpp
src/H2Connection.cpp
src/jwt.cpp
src/loop.cpp
src/message.cpp
Expand All @@ -66,6 +67,7 @@ target_link_libraries(fuerte PUBLIC
Boost::thread
${OPENSSL_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
nghttp2
)
target_include_directories(fuerte PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
Expand All @@ -83,21 +85,26 @@ target_compile_definitions(fuerte PUBLIC
add_executable(fuerte-get tools/fuerte-get.cpp)
target_link_libraries(fuerte-get PUBLIC fuerte)

add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/nghttp2/)

#########################################################################################
# Tests

if(FUERTE_TESTS)
add_subdirectory(3rdParty/googletest)
add_subdirectory(tests)
endif()

#########################################################################################
# Examples

if(FUERTE_EXAMPLES)
add_subdirectory(examples)
endif()

#########################################################################################
# Install

if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
if(UNIX)
set(CMAKE_INSTALL_PREFIX "$ENV{HOME}/.local")
Expand Down
Loading