2023-11-20 20:40:24 +01:00
|
|
|
set(TARGET server)
|
|
|
|
add_executable(${TARGET} server.cpp httplib.h json.hpp)
|
|
|
|
|
|
|
|
include(DefaultTargetOptions)
|
|
|
|
|
|
|
|
target_link_libraries(${TARGET} PRIVATE common whisper ${CMAKE_THREAD_LIBS_INIT})
|
2023-12-10 18:47:52 +01:00
|
|
|
|
|
|
|
# Check if the compiler is MinGW
|
|
|
|
if(MINGW)
|
|
|
|
# Link the necessary libraries for SSL and Winsock
|
|
|
|
target_link_libraries(${TARGET} PRIVATE -lcrypt32 -lssl -lcrypto -lws2_32)
|
|
|
|
endif()
|