dolphin/Externals/libiconv-1.14/CMakeLists.txt
TellowKrinkle b9595a2230 CMake: Use find_package and imported targets for Iconv
Fixes us forgetting to add its include directories, which could result in linking to a dylib from MacPorts while using the system's header, and failing to link because they use different function names
2023-04-08 21:43:03 -05:00

14 lines
248 B
CMake

add_library(iconv STATIC
lib/iconv.c
lib/relocatable.c
libcharset/lib/localcharset.c
)
target_include_directories(iconv
PUBLIC
include
PRIVATE
libcharset/include
)
dolphin_disable_warnings_msvc(iconv)
add_library(Iconv::Iconv ALIAS iconv)