Commit 238702d6 authored by François Grisez's avatar François Grisez
Browse files

Enable internationalisation of liblinphone with CMake

parent 52610bf4
...@@ -164,6 +164,10 @@ endif() ...@@ -164,6 +164,10 @@ endif()
if(MSVC) if(MSVC)
include_directories(${MSVC_INCLUDE_DIR}) include_directories(${MSVC_INCLUDE_DIR})
endif() endif()
if(INTL_FOUND)
set(HAVE_GETTEXT 1)
add_definitions("-DENABLE_NLS")
endif()
add_definitions("-DIN_LINPHONE") add_definitions("-DIN_LINPHONE")
......
...@@ -42,3 +42,4 @@ ...@@ -42,3 +42,4 @@
#cmakedefine HAVE_ZLIB 1 #cmakedefine HAVE_ZLIB 1
#cmakedefine HAVE_CU_GET_SUITE 1 #cmakedefine HAVE_CU_GET_SUITE 1
#cmakedefine HAVE_CU_CURSES 1 #cmakedefine HAVE_CU_CURSES 1
#cmakedefine HAVE_GETTEXT 1
...@@ -144,6 +144,9 @@ endif() ...@@ -144,6 +144,9 @@ endif()
if(WIN32 AND NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsPhone") if(WIN32 AND NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsPhone")
list(APPEND LIBS shlwapi) list(APPEND LIBS shlwapi)
endif() endif()
if(GETTEXT_FOUND)
list(APPEND LIBS ${INTL_LIBRARIES})
endif()
if(ENABLE_STATIC) if(ENABLE_STATIC)
add_library(linphone STATIC ${SOURCE_FILES} ${GENERATED_SOURCE_FILES}) add_library(linphone STATIC ${SOURCE_FILES} ${GENERATED_SOURCE_FILES})
......
...@@ -72,10 +72,6 @@ if(WIN32) ...@@ -72,10 +72,6 @@ if(WIN32)
list(APPEND SOURCE_FILES linphone.rc) list(APPEND SOURCE_FILES linphone.rc)
endif() endif()
if(GETTEXT_FOUND)
add_definitions("-DENABLE_NLS")
endif()
if(WIN32) if(WIN32)
add_executable(linphone-gtk WIN32 ${SOURCE_FILES}) add_executable(linphone-gtk WIN32 ${SOURCE_FILES})
else() else()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment