mirror of
https://github.com/cemu-project/vcpkg.git
synced 2024-11-23 19:29:49 +00:00
[nana] fixed build for windows (#10936)
This commit is contained in:
parent
bdb7b8107c
commit
e845327406
@ -1,5 +1,5 @@
|
||||
Source: nana
|
||||
Version: 1.7.2-1
|
||||
Version: 1.7.2-2
|
||||
Homepage: https://github.com/cnjinhao/nana
|
||||
Description: Cross-platform library for GUI programming in modern C++ style.
|
||||
Build-Depends: libpng, libjpeg-turbo, freetype (!uwp&&!windows), fontconfig (!uwp&&!windows)
|
||||
|
@ -7,11 +7,14 @@ if(UNIX)
|
||||
find_library(FONTCONFIG_LIB NAMES fontconfig)
|
||||
endif()
|
||||
|
||||
if(@NANA_ENABLE_PNG@)
|
||||
option(NANA_ENABLE_PNG "Enable PNG support" @NANA_ENABLE_PNG@)
|
||||
option(NANA_ENABLE_JPEG "Enable JPEG support" @NANA_ENABLE_JPEG@)
|
||||
|
||||
if(NANA_ENABLE_PNG)
|
||||
find_package(PNG REQUIRED)
|
||||
endif()
|
||||
|
||||
if(@NANA_ENABLE_JPEG@)
|
||||
if(NANA_ENABLE_JPEG)
|
||||
find_package(JPEG REQUIRED)
|
||||
endif()
|
||||
|
||||
@ -21,6 +24,6 @@ if(UNIX)
|
||||
target_link_libraries(unofficial::nana::nana INTERFACE ${FONTCONFIG_LIB} ${X11_LIBRARIES} ${X11_Xft_LIB})
|
||||
endif()
|
||||
|
||||
if(@NANA_ENABLE_JPEG@)
|
||||
if(NANA_ENABLE_JPEG)
|
||||
target_link_libraries(unofficial::nana::nana INTERFACE ${JPEG_LIBRARIES})
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user