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(
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)
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)
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)