-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from 5cript/devel
Cleaned up dependency management.
- Loading branch information
Showing
13 changed files
with
125 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
set(BREW_PREFIX "/opt/homebrew" CACHE STRING "Homebrew install prefix") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
find_package(Boost 1.81.0 REQUIRED COMPONENTS system) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
if (UNIX) | ||
find_package(PkgConfig REQUIRED) | ||
endif() | ||
|
||
add_library(roar-cryptopp INTERFACE) | ||
|
||
if (WIN32) | ||
find_package(CryptoPP REQUIRED) | ||
if (${MSVC}) | ||
target_link_libraries(roar-cryptopp INTERFACE cryptopp::cryptopp) | ||
else() | ||
target_link_libraries(roar-cryptopp INTERFACE cryptopp-static) | ||
endif() | ||
elseif(APPLE) | ||
find_library(CRYPTOPP_LIB libcryptopp.a HINTS ${BREW_PREFIX}/lib) | ||
target_include_directories(roar-cryptopp INTERFACE ${BREW_PREFIX}/include) | ||
target_link_libraries(roar-cryptopp INTERFACE ${CRYPTOPP_LIB}) | ||
elseif(UNIX) | ||
pkg_check_modules(cryptopp IMPORTED_TARGET libcrypto++) | ||
if ("${cryptopp_FOUND}" STREQUAL "1") | ||
else() | ||
pkg_check_modules(cryptopp IMPORTED_TARGET libcryptopp) | ||
endif() | ||
target_link_libraries(roar-cryptopp INTERFACE PkgConfig::cryptopp) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
find_package(CURL REQUIRED) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
option(ROAR_EXTERNAL_NLOHMANN_JSON "Use an external nlohmann_json library (provide it manually)" OFF) | ||
set(ROAR_NLOHMANN_JSON_GIT_REPOSITORY "https://github.com/nlohmann/json.git" CACHE STRING "The URL from which to clone the nlohmann_json repository") | ||
set(ROAR_NLOHMANN_JSON_GIT_TAG "9dfa7226693012ed5bcf5ab3bc5d8e69d58006ab" CACHE STRING "The git tag or commit hash to checkout from the nlohmann_json repository") | ||
|
||
if (ROAR_EXTERNAL_NLOHMANN_JSON) | ||
else() | ||
include(FetchContent) | ||
FetchContent_Declare( | ||
nlohmann_json | ||
GIT_REPOSITORY ${ROAR_NLOHMANN_JSON_GIT_REPOSITORY} | ||
GIT_TAG ${ROAR_NLOHMANN_JSON_GIT_TAG} | ||
) | ||
|
||
FetchContent_MakeAvailable(nlohmann_json) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
find_package(OpenSSL COMPONENTS SSL Crypto) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
set(PROMISE_BUILD_EXAMPLES off CACHE BOOL "Promise build examples" FORCE) | ||
set(PROMISE_MULTITHREAD on CACHE BOOL "Promise multithreading on") | ||
|
||
option(ROAR_EXTERNAL_PROMISE "Use an external promise library (provide it manually)" OFF) | ||
set(ROAR_PROMISE_GIT_REPOSITORY "https://github.com/5cript/promise-cpp.git" CACHE STRING "The URL from which to clone the promiselib repository") | ||
set(ROAR_PROMISE_GIT_TAG "affb386031896805c198485f10fd56215b1a4460" CACHE STRING "The git tag or commit hash to checkout from the promiselib repository") | ||
|
||
if (ROAR_EXTERNAL_PROMISE) | ||
else() | ||
include(FetchContent) | ||
FetchContent_Declare( | ||
promise | ||
GIT_REPOSITORY ${ROAR_PROMISE_GIT_REPOSITORY} | ||
GIT_TAG ${ROAR_PROMISE_GIT_TAG} | ||
) | ||
FetchContent_MakeAvailable(promise) | ||
|
||
if (WIN32) | ||
# MS SOCK | ||
target_link_libraries(promise PUBLIC -lws2_32 -lmswsock -lbcrypt) | ||
endif() | ||
endif() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters