Added i18n cmake option
This commit is contained in:
parent
d527d2db80
commit
a3477d689a
1 changed files with 10 additions and 6 deletions
|
@ -70,12 +70,16 @@ endif()
|
|||
|
||||
# Find dependencies
|
||||
|
||||
find_package(Gettext)
|
||||
find_package(Libintl)
|
||||
if (GETTEXT_FOUND AND LIBINTL_LIB_FOUND)
|
||||
include(GettextTranslate)
|
||||
add_subdirectory(po)
|
||||
set(ENABLE_NLS 1)
|
||||
option(I18N "Turn on internationalization" ON)
|
||||
|
||||
if (I18N)
|
||||
find_package(Gettext)
|
||||
find_package(Libintl)
|
||||
if (GETTEXT_FOUND AND LIBINTL_LIB_FOUND)
|
||||
include(GettextTranslate)
|
||||
add_subdirectory(po)
|
||||
set(ENABLE_NLS 1)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
include(CheckLibraryExists)
|
||||
|
|
Loading…
Add table
Reference in a new issue