mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 12:47:49 +08:00
27 lines
601 B
CMake
27 lines
601 B
CMake
|
@PACKAGE_INIT@
|
||
|
|
||
|
if(UNIX)
|
||
|
find_package(Threads REQUIRED)
|
||
|
find_package(Freetype REQUIRED)
|
||
|
find_package(X11 REQUIRED)
|
||
|
find_library(FONTCONFIG_LIB NAMES fontconfig)
|
||
|
endif()
|
||
|
|
||
|
if(@NANA_ENABLE_PNG@)
|
||
|
find_package(PNG REQUIRED)
|
||
|
endif()
|
||
|
|
||
|
if(@NANA_ENABLE_JPEG@)
|
||
|
find_package(JPEG REQUIRED)
|
||
|
endif()
|
||
|
|
||
|
include("${CMAKE_CURRENT_LIST_DIR}/unofficial-nana-targets.cmake")
|
||
|
|
||
|
if(UNIX)
|
||
|
target_link_libraries(unofficial::nana::nana INTERFACE ${FONTCONFIG_LIB} ${X11_LIBRARIES} ${X11_Xft_LIB})
|
||
|
endif()
|
||
|
|
||
|
if(@NANA_ENABLE_JPEG@)
|
||
|
target_link_libraries(unofficial::nana::nana INTERFACE ${JPEG_LIBRARIES})
|
||
|
endif()
|