sprinfall / webcc

Lightweight C++ HTTP client and server library based on Asio for embedding purpose.
GNU Lesser General Public License v3.0
270 stars 61 forks source link

Add as a subdirectory #16

Closed SeanOMik closed 3 years ago

SeanOMik commented 3 years ago

How could I add webcc as a subdirectory to my cmake project? I tried to do:

add_subdirectory(thirdparty/webcc)
# Later in the CMake
target_link_libraries(main PRIVATE webcc)

But I get errors when I try to include the library saying that that header doesn't exist.

sprinfall commented 3 years ago

You need to add more CMake statements for the configurations. In order to answer your question, I just created a demo project: https://github.com/sprinfall/webcc-integration I hope it helps.

SeanOMik commented 3 years ago

Sorry for taking so long to try it, but that did fix it.