]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | @PACKAGE_INIT@ |
2 | include(CMakeFindDependencyMacro) | |
3 | ||
4 | if(UNIX) | |
5 | find_dependency(Threads) | |
6 | find_dependency(Freetype) | |
7 | find_dependency(X11) | |
8 | find_dependency(Fontconfig) | |
9 | endif() | |
10 | ||
11 | option(NANA_ENABLE_PNG "Enable PNG support" @NANA_ENABLE_PNG@) | |
12 | option(NANA_ENABLE_JPEG "Enable JPEG support" @NANA_ENABLE_JPEG@) | |
13 | ||
14 | if(NANA_ENABLE_PNG) | |
15 | find_dependency(PNG) | |
16 | endif() | |
17 | ||
18 | if(NANA_ENABLE_JPEG) | |
19 | find_dependency(JPEG) | |
20 | endif() | |
21 | ||
22 | include("${CMAKE_CURRENT_LIST_DIR}/unofficial-nana-targets.cmake") | |
23 | ||
24 | if(UNIX) | |
25 | target_link_libraries(unofficial::nana::nana INTERFACE Fontconfig::Fontconfig ${X11_LIBRARIES} ${X11_Xft_LIB}) | |
26 | endif() | |
27 | ||
28 | if(NANA_ENABLE_JPEG) | |
29 | target_link_libraries(unofficial::nana::nana INTERFACE ${JPEG_LIBRARIES}) | |
30 | endif() |