From 8375f92802d3aa7667bfc6f22f6d2a72361c9808 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 4 Nov 2024 11:46:24 -0500 Subject: Websockets server! --- CMakeLists.txt | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index ed3f7e7..b1a7b38 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,15 +9,20 @@ pkg_check_modules(lept lept REQUIRED) pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED) pkg_check_modules(tclap tclap REQUIRED) pkg_check_modules(curlcpp curlcpp REQUIRED) +find_package(websocketpp) include_directories( vendor/json vendor/hkutil + vendor/asio/asio/include + vendor/base64/include + vendor/stduuid ${tesseract_INCLUDE_DIRS} ${lept_INCLUDE_DIRS} ${GraphicsMagick_INCLUDE_DIRS} ${curlcpp_INCLUDE_DIRS} ${tclap_INCLUDE_DIRS} + ${WEBSOCKETPP_INCLUDE_DIR} ) link_directories( @@ -25,10 +30,11 @@ link_directories( ${lept_LIBRARY_DIRS} ${GraphicsMagick_LIBRARY_DIRS} ${curlcpp_LIBRARY_DIRS} + ${websocketpp_LIBRARY_DIRS} ) -add_executable(wizard cardset.cpp imagestore.cpp designer.cpp wizard.cpp main.cpp) -set_property(TARGET wizard PROPERTY CXX_STANDARD 14) +add_library(wizard cardset.cpp imagestore.cpp designer.cpp wizard.cpp) +set_property(TARGET wizard PROPERTY CXX_STANDARD 17) set_property(TARGET wizard PROPERTY CXX_STANDARD_REQUIRED ON) target_link_libraries( wizard @@ -37,3 +43,20 @@ target_link_libraries( ${GraphicsMagick_LIBRARIES} ${curlcpp_LIBRARIES} ) + +add_executable(wizard_gen main.cpp) +set_property(TARGET wizard_gen PROPERTY CXX_STANDARD 17) +set_property(TARGET wizard_gen PROPERTY CXX_STANDARD_REQUIRED ON) +target_link_libraries( + wizard_gen + wizard +) + +add_executable(wizard_server database.cpp server_main.cpp) +set_property(TARGET wizard_server PROPERTY CXX_STANDARD 17) +set_property(TARGET wizard_server PROPERTY CXX_STANDARD_REQUIRED ON) +target_link_libraries( + wizard_server + wizard + ${websocketpp_LIBRARIES} +) -- cgit 1.4.1