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

Enable internationalisation of liblinphone with CMake

parent 52610bf4
......@@ -164,6 +164,10 @@ endif()
if(MSVC)
include_directories(${MSVC_INCLUDE_DIR})
endif()
if(INTL_FOUND)
set(HAVE_GETTEXT 1)
add_definitions("-DENABLE_NLS")
endif()
add_definitions("-DIN_LINPHONE")
......
......@@ -42,3 +42,4 @@
#cmakedefine HAVE_ZLIB 1
#cmakedefine HAVE_CU_GET_SUITE 1
#cmakedefine HAVE_CU_CURSES 1
#cmakedefine HAVE_GETTEXT 1
......@@ -144,6 +144,9 @@ endif()
if(WIN32 AND NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsPhone")
list(APPEND LIBS shlwapi)
endif()
if(GETTEXT_FOUND)
list(APPEND LIBS ${INTL_LIBRARIES})
endif()
if(ENABLE_STATIC)
add_library(linphone STATIC ${SOURCE_FILES} ${GENERATED_SOURCE_FILES})
......
......@@ -72,10 +72,6 @@ if(WIN32)
list(APPEND SOURCE_FILES linphone.rc)
endif()
if(GETTEXT_FOUND)
add_definitions("-DENABLE_NLS")
endif()
if(WIN32)
add_executable(linphone-gtk WIN32 ${SOURCE_FILES})
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