add required libraries

This commit is contained in:
Sven Czarnian
2021-11-18 15:53:34 +01:00
parent 1a58301d4f
commit a23de5ee67
25 changed files with 7175 additions and 0 deletions

View File

@@ -8,6 +8,19 @@
# include the external project library
INCLUDE(ExternalProject)
# define the import target of libcurl
ADD_LIBRARY(libcurl STATIC IMPORTED)
IF (MSVC)
SET_TARGET_PROPERTIES(libcurl PROPERTIES
IMPORTED_LOCATION_DEBUG "${CMAKE_SOURCE_DIR}/external/lib/libcurl-d.lib"
IMPORTED_LOCATION_RELEASE "${CMAKE_SOURCE_DIR}/external/lib/libcurl.lib"
)
TARGET_LINK_LIBRARIES(libcurl INTERFACE Ws2_32 Iphlpapi Crypt32)
TARGET_INCLUDE_DIRECTORIES(libcurl INTERFACE "${CMAKE_SOURCE_DIR}/external/include")
ELSE ()
MESSAGE(FATAL_ERROR "Unsupported compiler")
ENDIF ()
# define the import target of libsodium
ADD_LIBRARY(libsodium STATIC IMPORTED)
IF (MSVC)
@@ -21,6 +34,18 @@ ELSE ()
MESSAGE(FATAL_ERROR "Unsupported compiler")
ENDIF ()
# define the import target of libcurl
ADD_LIBRARY(jsoncpp STATIC IMPORTED)
IF (MSVC)
SET_TARGET_PROPERTIES(jsoncpp PROPERTIES
IMPORTED_LOCATION_DEBUG "${CMAKE_SOURCE_DIR}/external/lib/jsoncpp_d.lib"
IMPORTED_LOCATION_RELEASE "${CMAKE_SOURCE_DIR}/external/lib/jsoncpp.lib"
)
TARGET_INCLUDE_DIRECTORIES(jsoncpp INTERFACE "${CMAKE_SOURCE_DIR}/external/include")
ELSE ()
MESSAGE(FATAL_ERROR "Unsupported compiler")
ENDIF ()
# define the import target of libzmq
ADD_LIBRARY(libzmq STATIC IMPORTED)
ADD_DEPENDENCIES(libzmq libsodium)