Skip to content

Commit 83abb6b

Browse files
committed
Add sigslot library
1 parent 597c4a0 commit 83abb6b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,18 @@ include_directories(thirdparty/spimpl)
7979
FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz)
8080
FetchContent_MakeAvailable(json)
8181

82+
set(SIGSLOT_COMPILE_TESTS OFF)
83+
set(SIGSLOT_COMPILE_EXAMPLES OFF)
84+
FetchContent_Declare(
85+
sigslot
86+
GIT_REPOSITORY https://github.com/palacaze/sigslot
87+
GIT_TAG 19a6f0f5ea11fc121fe67f81fd5e491f2d7a4637 # v1.2.0
88+
)
89+
FetchContent_MakeAvailable(sigslot)
90+
8291
target_link_libraries(scratchcpp PRIVATE nlohmann_json::nlohmann_json)
8392
target_link_libraries(scratchcpp PRIVATE zip)
93+
target_link_libraries(scratchcpp PUBLIC Pal::Sigslot)
8494
target_link_libraries(scratchcpp PRIVATE scratchcpp-audio)
8595

8696
if (LIBSCRATCHCPP_NETWORK_SUPPORT)

0 commit comments

Comments
 (0)