Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated the cmake\dependencies.cmake file and removed changes in READ… #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
30 changes: 30 additions & 0 deletions cmake/dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,33 @@ if(${RFAAS_WITH_TESTING})
FetchContent_MakeAvailable(googletest)
endif()

###
# readerwriterqueue
###
include(FetchContent)
find_package(readerwriterqueue QUIET)
if(NOT readerwriterqueue_FOUND)
message(STATUS "Downloading and building readerwriterqueue dependency")
FetchContent_Declare(
readerwriterqueue
GIT_REPOSITORY https://github.com/cameron314/readerwriterqueue
GIT_TAG master
)
FetchContent_MakeAvailable(readerwriterqueue)
endif()

###
# pistache
###
include(FetchContent)
find_package(PkgConfig)
find_package(pistache)
if(NOT pistache_FOUND)
message(STATUS "Downloading and building pistache dependency")
FetchContent_Declare(pistache
GIT_REPOSITORY https://github.com/pistacheio/pistache.git
)
FetchContent_MakeAvailable(pistache)
else()
pkg_check_modules(Pistache REQUIRED IMPORTED_TARGET libpistache)
endif()