2018-06-15 05:56:43 +08:00
|
|
|
@PACKAGE_INIT@
|
|
|
|
|
|
|
|
if(UNIX)
|
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
find_package(Freetype REQUIRED)
|
|
|
|
find_package(X11 REQUIRED)
|
|
|
|
find_library(FONTCONFIG_LIB NAMES fontconfig)
|
|
|
|
endif()
|
|
|
|
|
2020-05-01 08:40:44 +08:00
|
|
|
option(NANA_ENABLE_PNG "Enable PNG support" @NANA_ENABLE_PNG@)
|
|
|
|
option(NANA_ENABLE_JPEG "Enable JPEG support" @NANA_ENABLE_JPEG@)
|
|
|
|
|
|
|
|
if(NANA_ENABLE_PNG)
|
2018-06-15 05:56:43 +08:00
|
|
|
find_package(PNG REQUIRED)
|
|
|
|
endif()
|
|
|
|
|
2020-05-01 08:40:44 +08:00
|
|
|
if(NANA_ENABLE_JPEG)
|
2018-06-15 05:56:43 +08:00
|
|
|
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()
|
|
|
|
|
2020-05-01 08:40:44 +08:00
|
|
|
if(NANA_ENABLE_JPEG)
|
2018-06-15 05:56:43 +08:00
|
|
|
target_link_libraries(unofficial::nana::nana INTERFACE ${JPEG_LIBRARIES})
|
|
|
|
endif()
|