2018-06-15 05:56:43 +08:00
|
|
|
@PACKAGE_INIT@
|
2021-01-13 12:14:04 +08:00
|
|
|
include(CMakeFindDependencyMacro)
|
2018-06-15 05:56:43 +08:00
|
|
|
|
|
|
|
if(UNIX)
|
2021-01-13 12:14:04 +08:00
|
|
|
find_dependency(Threads)
|
|
|
|
find_dependency(Freetype)
|
|
|
|
find_dependency(X11)
|
|
|
|
find_dependency(Fontconfig)
|
2018-06-15 05:56:43 +08:00
|
|
|
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)
|
2021-01-13 12:14:04 +08:00
|
|
|
find_dependency(PNG)
|
2018-06-15 05:56:43 +08:00
|
|
|
endif()
|
|
|
|
|
2020-05-01 08:40:44 +08:00
|
|
|
if(NANA_ENABLE_JPEG)
|
2021-01-13 12:14:04 +08:00
|
|
|
find_dependency(JPEG)
|
2018-06-15 05:56:43 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/unofficial-nana-targets.cmake")
|
|
|
|
|
|
|
|
if(UNIX)
|
2021-01-13 12:14:04 +08:00
|
|
|
target_link_libraries(unofficial::nana::nana INTERFACE Fontconfig::Fontconfig ${X11_LIBRARIES} ${X11_Xft_LIB})
|
2018-06-15 05:56:43 +08:00
|
|
|
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()
|