Update CMakeLists.txt

This commit is contained in:
SChernykh 2022-03-18 14:53:30 +01:00
parent ab0bc0488e
commit 796850d8c5

View file

@ -111,6 +111,7 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES GNU OR CMAKE_CXX_COMPILER_ID MATCHES Clang
find_library(ZMQ_LIBRARY NAMES zmq libzmq.a) find_library(ZMQ_LIBRARY NAMES zmq libzmq.a)
find_library(UV_LIBRARY_DEBUG NAMES uv libuv.a) find_library(UV_LIBRARY_DEBUG NAMES uv libuv.a)
find_library(UV_LIBRARY NAMES uv libuv.a) find_library(UV_LIBRARY NAMES uv libuv.a)
find_library(SODIUM_LIBRARY sodium)
endif() endif()
find_library(PGM_LIBRARY pgm) find_library(PGM_LIBRARY pgm)
@ -124,6 +125,10 @@ if (NORM_LIBRARY)
set(LIBS ${LIBS} ${NORM_LIBRARY}) set(LIBS ${LIBS} ${NORM_LIBRARY})
endif() endif()
if (SODIUM_LIBRARY)
set(LIBS ${LIBS} ${SODIUM_LIBRARY})
endif()
add_definitions(/DZMQ_STATIC) add_definitions(/DZMQ_STATIC)
add_executable(${CMAKE_PROJECT_NAME} ${HEADERS} ${SOURCES}) add_executable(${CMAKE_PROJECT_NAME} ${HEADERS} ${SOURCES})