1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 15:23:01 +01:00

cmake: add iconv libraries

This commit is contained in:
Linus Unnebäck
2015-11-30 09:19:01 +01:00
parent 894d2cd130
commit c4356c1ecc

View File

@@ -96,6 +96,11 @@ else (WIN32)
add_executable(${PROJECT} ${ORCT2_SOURCES}) add_executable(${PROJECT} ${ORCT2_SOURCES})
endif (WIN32) endif (WIN32)
if (APPLE)
FIND_LIBRARY(ICONV_LIBRARIES NAMES iconv libiconv libiconv-2 c)
TARGET_LINK_LIBRARIES(${PROJECT} ${ICONV_LIBRARIES})
endif (APPLE)
# install into ${CMAKE_INSTALL_PREFIX}/bin/ # install into ${CMAKE_INSTALL_PREFIX}/bin/
#install (TARGETS ${PROJECT} DESTINATION bin) #install (TARGETS ${PROJECT} DESTINATION bin)