lyx_mirror/development/cmake/intl/CMakeLists.txt
Peter Kümmel 7c00f14cc1 Initial cmake support.
trunk/development/cmake/README.cmake:

Building LyX with CMake

CMake 2.4.2 or CVS version from www.cmake.org


Building Visual C++ 2005 project files:

- install Visual C++ 2005
- install Platform SDK 2005, "Core" and "Web Workshop"
- add include and library paths of the SDK to the IDE search paths,
  menu: Tools->Options->VC++ directories->Library files + Include files
- install zlib (www.zlib.net) into %ProgramFiles%/GnuWin32/include+lib
  or %ProgramFiles%/zlib/include+lib
- create a build directory, e.g. .../trunk/../build
- call in the build directory cmake ..\trunk\development\cmake
- start lyx.sln


To generate other build files call "cmake" 
which shows a list of possibilities.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14071 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-11 11:57:25 +00:00

80 lines
1.6 KiB
CMake
Executable File

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)
add_definitions(
-DHAVE_CONFIG_H=1
-DMAKE_INTL_LIB
-DIN_LIBINTL
-DENABLE_RELOCATABLE=1
-DIN_LIBRARY
-DNO_XMALLOC
-Dset_relocation_prefix=libintl_set_relocation_prefix
-Drelocate=libintl_relocate
-DDEPENDS_ON_LIBICONV=1
-DICONV_CONST=const
)
if(MSVC_IDE)
add_definitions(
-DLOCALEDIR="${LOCALE_DIR}"
-DLOCALE_ALIAS_PATH="${LOCALE_DIR}"
-DLIBDIR="${TOP_SRC_DIR}"
-DINSTALLDIR="${PREFIX}"
)
else(MSVC_IDE)
add_definitions(
-DLOCALEDIR=\\"${LOACLE_DIR}\\"
-DLOCALE_ALIAS_PATH=\\"${LOACLE_DIR}\\"
-DLIBDIR=\\"${TOP_SRC_DIR}\\"
-DINSTALLDIR=\\"${PREFIX}\\"
)
endif(MSVC_IDE)
set(intl_sources
bindtextdom.c
dcgettext.c
dgettext.c
gettext.c
finddomain.c
loadmsgcat.c
localealias.c
textdomain.c
l10nflist.c
explodename.c
dcigettext.c
dcngettext.c
dngettext.c
ngettext.c
plural.c
plural-exp.c
localcharset.c
relocatable.c
localename.c
log.c
printf.c
osdep.c
intl-compat.c
)
lyx_add_path(intl_sources ${TOP_SRC_DIR}/intl)
include_directories(${TOP_SRC_DIR}/intl ${CMAKE_CURRENT_BINARY_DIR})
if(ICONV_FOUND)
include_directories(${ICONV_INCLUDE_DIR})
endif(ICONV_FOUND)
add_library(intl STATIC ${intl_sources})
if(ICONV_FOUND)
target_link_libraries(intl ${ICONV_LIBRARY})
endif(ICONV_FOUND)