vcpkg/ports/nana/config.cmake.in

27 lines
601 B
CMake
Raw Normal View History

@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()