vcpkg/ports/gettext/CMakeLists_libintl.txt

55 lines
1.2 KiB
Plaintext
Raw Normal View History

2016-11-02 03:12:26 +08:00
cmake_policy(SET CMP0005 OLD)
project(libintl)
include_directories(".")
FILE(GLOB SOURCES
"intl/bindtextdom.c"
"intl/dcgettext.c"
"intl/dcigettext.c"
"intl/dcngettext.c"
"intl/dgettext.c"
"intl/dngettext.c"
"intl/explodename.c"
"intl/finddomain.c"
"intl/gettext.c"
"intl/hash-string.c"
"intl/intl-compat.c"
"intl/l10nflist.c"
"intl/langprefs.c"
"intl/loadmsgcat.c"
"intl/localcharset.c"
"intl/localealias.c"
"intl/localename.c"
"intl/lock.c"
"intl/log.c"
"intl/ngettext.c"
"intl/osdep.c"
"intl/plural-exp.c"
"intl/plural.c"
"intl/printf.c"
"intl/relocatable.c"
"intl/textdomain.c"
"intl/version.c"
)
set(LOCALDIR "c:\\gettext")
add_definitions(-DLOCALEDIR=\\\"${LOCALDIR}\\\")
add_definitions(-DLOCALE_ALIAS_PATH=\\\"${LOCALDIR}\\\")
add_definitions(-DLIBDIR=\\\"${LOCALDIR}\\\")
add_definitions(-DINSTALLDIR=\\\"${LOCALDIR}\\\")
add_definitions("-DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY")
add_definitions("-DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS")
add_library(libintl ${SOURCES})
install(TARGETS libintl
RUNTIME DESTINATION bin
LIBRARY DESTINATION bin
ARCHIVE DESTINATION lib
)