Skip to content

Commit

Permalink
spcl#14 added dependencies pistache & readerwriterqueue
Browse files Browse the repository at this point in the history
  • Loading branch information
Mac16661 committed Sep 12, 2023
1 parent 16303a2 commit 06fea1b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions cmake/dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,32 @@ 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
###
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
)
pkg_check_modules(Pistache REQUIRED IMPORTED_TARGET libpistache)
else()
pkg_check_modules(Pistache REQUIRED IMPORTED_TARGET libpistache)
endif()

0 comments on commit 06fea1b

Please sign in to comment.