0

I am trying to install uws, (I did not find an official cmake installation guide in their githab) To do this, I downloaded the library from githab, created a lib folder in the root directory and put the library there.

I have a question how to add it to my project? I'm trying this way, but it doesn't work:

find_path(UWS lib/uWebSockets)

add_library(uWebSockets)

CMake Error at CMakeLists.txt:15 (add_library): No SOURCES given to target: uWebSockets

Should I create a separate cmakelist in the lib folder? Compile the library and then add it to the main cmakelist?

  • About searching library see [this answer](https://stackoverflow.com/a/41909627/3440745) to the duplicate question. About creating a library target which represents existed library, see [that answer](https://stackoverflow.com/a/10550334/3440745). – Tsyvarev Sep 07 '21 at 21:51

0 Answers0