forked from victimsnino/ReactivePlusPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdependencies.cmake
39 lines (32 loc) · 1.02 KB
/
dependencies.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
find_package(Threads REQUIRED)
# ===================== SFML =======================
if (RPP_BUILD_SFML_CODE)
find_package(SFML COMPONENTS graphics system window REQUIRED)
endif()
# ==================== RXCPP =======================
if (RPP_BUILD_RXCPP)
set(RXCPP_DISABLE_TESTS_AND_EXAMPLES 1)
Include(FetchContent)
FetchContent_Declare(
RxCpp
GIT_REPOSITORY https://github.com/ReactiveX/RxCpp.git
GIT_TAG origin/main
)
FetchContent_MakeAvailable(RxCpp)
endif()
# ===================== Catch 2 ===================
if (RPP_BUILD_TESTS OR RPP_BUILD_BENCHMARKS)
find_package(Catch2 3 QUIET)
if(TARGET Catch2::Catch2WithMain)
message("-- RPP: Catch2 found as package")
else()
message("-- RPP: Catch2 not found, fetching from github... Set Catch2_DIR if you have installed Catch2")
Include(FetchContent)
FetchContent_Declare(
Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v3.1.0
)
FetchContent_MakeAvailable(Catch2)
endif()
endif()