mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 06:23:04 +01:00
Enable curl, openssl and freetype libraries for msvc
This commit is contained in:
@@ -36,17 +36,26 @@ endif ()
|
||||
|
||||
# Third party libraries (optional)
|
||||
if (NOT DISABLE_HTTP_TWITCH OR NOT DISABLE_NETWORK)
|
||||
PKG_CHECK_MODULES(LIBCURL REQUIRED libcurl)
|
||||
if (MSVC)
|
||||
find_package(curl REQUIRED)
|
||||
set(LIBCURL_LIBRARIES ${CURL_LIBRARIES})
|
||||
else ()
|
||||
PKG_CHECK_MODULES(LIBCURL REQUIRED libcurl)
|
||||
endif ()
|
||||
endif ()
|
||||
if (NOT DISABLE_NETWORK)
|
||||
find_package(OpenSSL 1.0.0 REQUIRED)
|
||||
endif ()
|
||||
|
||||
if (NOT DISABLE_TTF)
|
||||
if (UNIX AND NOT APPLE)
|
||||
if (UNIX AND NOT APPLE AND NOT MSVC)
|
||||
PKG_CHECK_MODULES(FONTCONFIG REQUIRED fontconfig)
|
||||
endif ()
|
||||
PKG_CHECK_MODULES(FREETYPE REQUIRED freetype2)
|
||||
if (MSVC)
|
||||
find_package(freetype REQUIRED)
|
||||
else ()
|
||||
PKG_CHECK_MODULES(FREETYPE REQUIRED freetype2)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
# Sources
|
||||
|
||||
Reference in New Issue
Block a user