mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 06:38:59 +08:00
30 lines
725 B
CMake
30 lines
725 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()
|
|
|
|
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)
|
|
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()
|