In colaboration with Stephan Witt, adapted to our libintl to MAC

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38695 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Kornel Benko 2011-05-10 19:18:44 +00:00
parent 45ac3ef7d0
commit 5c1666c0e1
3 changed files with 13 additions and 3 deletions

View File

@ -7,8 +7,8 @@
project(intl)
# libgnuintl.h.in => libintl.h
configure_file(libgnuintl.h ${CMAKE_CURRENT_BINARY_DIR}/libgnuintl.h COPYONLY)
configure_file(libgnuintl.h ${CMAKE_CURRENT_BINARY_DIR}/libintl.h COPYONLY)
configure_file("${TOP_SRC_DIR}/${LYX_CMAKE_DIR}/intl/libgnuintl.h" ${CMAKE_CURRENT_BINARY_DIR}/libgnuintl.h COPYONLY)
configure_file("${TOP_SRC_DIR}/${LYX_CMAKE_DIR}/intl/libgnuintl.h" ${CMAKE_CURRENT_BINARY_DIR}/libintl.h COPYONLY)
add_definitions(
@ -39,7 +39,7 @@ endif()
file(GLOB intl_headers ${TOP_SRC_DIR}/intl/*.h)
file(GLOB intl_sources RELATIVE "${TOP_SRC_DIR}/intl" "${TOP_SRC_DIR}/intl/*.c")
list(REMOVE_ITEM intl_sources vasnprintf.c version.c printf-parse.c os2compat.c)
list(REMOVE_ITEM intl_sources vasnprintf.c version.c printf-parse.c os2compat.c intl-exports.c)
lyx_add_path(intl_sources ${TOP_SRC_DIR}/intl)

View File

@ -42,5 +42,10 @@ if(APPLE)
target_link_libraries(${_lyxclient} "-framework Carbon")
endif()
if(NOT LYX_EXTERNAL_LIBINTL OR WIN32)
target_link_libraries(${_lyxclient} intl)
add_dependencies(${_lyxclient} intl_target)
endif()
install(TARGETS ${_lyxclient} DESTINATION bin)

View File

@ -54,6 +54,11 @@ if(APPLE)
target_link_libraries(${_tex2lyx} "-framework Carbon")
endif()
if(NOT LYX_EXTERNAL_LIBINTL OR WIN32)
target_link_libraries(${_tex2lyx} intl)
add_dependencies(${_tex2lyx} intl_target)
endif()
project_source_group("${GROUP_CODE}" tex2lyx_sources tex2lyx_headers)
install(TARGETS ${_tex2lyx} DESTINATION bin)