add_executable(toREST
  main.cpp
  http.cpp
)

target_link_libraries(toREST
  PRIVATE
  nlohmann_json::nlohmann_json
  PUBLIC
  stdc++fs
  simple-web-server
  simple-websocket-server
  ${Boost_LIBRARIES}
  ${LIBTORRENT_LIBRARY}
  ${OPENSSL_CRYPTO_LIBRARY})


target_include_directories(toREST PRIVATE
  ${Boost_INCLUDE_DIRS}
  ${OPENSSL_INCLUDE_DIR}
  ${LIBTORRENT_INCLUDE_DIR}
  "${CMAKE_SOURCE_DIR}/include"
)

