diff --git a/CMakeLists.txt b/CMakeLists.txt index 4623010878..5c37caa278 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -779,8 +779,9 @@ include(CheckCXXCompilerFlag) add_subdirectory(bindings) -# TODO: Option +if(webtorrent) target_link_libraries(torrent-rasterbar PRIVATE LibDataChannel::LibDataChannelStatic nlohmann_json::nlohmann_json) +endif() install(TARGETS torrent-rasterbar EXPORT LibtorrentRasterbarTargets LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}