1 # This file is part of LyX, the document processor.
2 # Licence details can be found in the file COPYING.
4 # Copyright (c) 2006, Peter Kümmel, <syntheticpp@gmx.net>
9 # libgnuintl.h.in => libintl.h
10 configure_file(libgnuintl.h ${CMAKE_CURRENT_BINARY_DIR}/libgnuintl.h COPYONLY)
11 configure_file(libgnuintl.h ${CMAKE_CURRENT_BINARY_DIR}/libintl.h COPYONLY)
18 -DENABLE_RELOCATABLE=1
21 -Dset_relocation_prefix=libintl_set_relocation_prefix
22 -Drelocate=libintl_relocate
23 -DDEPENDS_ON_LIBICONV=1
30 -DLOCALEDIR="${LOCALE_DIR}"
31 -DLOCALE_ALIAS_PATH="${LOCALE_DIR}"
32 -DLIBDIR="${TOP_SRC_DIR}"
33 -DINSTALLDIR="${PREFIX}"
37 -DLOCALEDIR=\\"${LOACLE_DIR}\\"
38 -DLOCALE_ALIAS_PATH=\\"${LOACLE_DIR}\\"
39 -DLIBDIR=\\"${TOP_SRC_DIR}\\"
40 -DINSTALLDIR=\\"${PREFIX}\\"
45 file(GLOB intl_headers ${TOP_SRC_DIR}/intl/*.h)
73 lyx_add_path(intl_sources ${TOP_SRC_DIR}/intl)
75 include_directories(${TOP_SRC_DIR}/intl ${CMAKE_CURRENT_BINARY_DIR})
78 include_directories(${ICONV_INCLUDE_DIR})
81 add_library(intl STATIC ${intl_sources} ${intl_headers})
84 target_link_libraries(intl ${ICONV_LIBRARY})
87 project_source_group("${GROUP_CODE}" intl_sources intl_headers)