making basic server work with dependencies for uwebsockets added to cmake
This commit is contained in:
@@ -4,6 +4,9 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
project(HomechatServer)
|
||||
|
||||
find_library(USOCKETS_LIBRARY uSockets.a PATHS /usr/local/lib REQUIRED)
|
||||
find_package(ZLIB REQUIRED)
|
||||
|
||||
set(source_dir ${CMAKE_CURRENT_SOURCE_DIR}/src)
|
||||
file(GLOB source_files
|
||||
${source_dir}/*.cpp
|
||||
@@ -11,3 +14,5 @@ file(GLOB source_files
|
||||
add_executable(${PROJECT_NAME} ${source_files})
|
||||
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC ${source_dir}/include)
|
||||
target_link_libraries(${PROJECT_NAME} ${USOCKETS_LIBRARY})
|
||||
target_link_libraries(${PROJECT_NAME} ZLIB::ZLIB)
|
||||
|
||||
Reference in New Issue
Block a user