Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
547822cd
Commit
547822cd
authored
Jul 02, 2015
by
François Grisez
Browse files
Fix internationalisation with CMake #2
parent
aa55fe06
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
CMakeLists.txt
CMakeLists.txt
+7
-2
coreapi/CMakeLists.txt
coreapi/CMakeLists.txt
+1
-1
gtk/CMakeLists.txt
gtk/CMakeLists.txt
+1
-1
No files found.
CMakeLists.txt
View file @
547822cd
...
...
@@ -51,6 +51,7 @@ option(ENABLE_TUTORIALS "Enable compilation of tutorials." YES)
option
(
ENABLE_UNIT_TESTS
"Enable compilation of unit tests."
YES
)
option
(
ENABLE_UPNP
"Build with uPnP support."
YES
)
option
(
ENABLE_VIDEO
"Build with video support."
YES
)
option
(
ENABLE_NLS
"Build with internationalisation support"
YES
)
list
(
APPEND CMAKE_MODULE_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake"
)
...
...
@@ -119,7 +120,10 @@ if(ENABLE_NOTIFY)
set
(
ENABLE_NOTIFY OFF CACHE BOOL
"Enable libnotify support."
FORCE
)
endif
()
endif
()
find_package
(
Gettext
)
if
(
ENABLE_NLS
)
find_package
(
Gettext REQUIRED
)
find_package
(
Intl REQUIRED
)
endif
()
include_directories
(
...
...
@@ -145,9 +149,10 @@ endif()
if
(
MSVC
)
include_directories
(
${
MSVC_INCLUDE_DIR
}
)
endif
()
if
(
GETTEXT
_FOUND
)
if
(
INTL
_FOUND
)
set
(
HAVE_GETTEXT 1
)
add_definitions
(
"-DENABLE_NLS"
)
include_directories
(
${
INTL_INCLUDE_DIRECTORIES
}
)
endif
()
add_definitions
(
"-DIN_LINPHONE"
)
...
...
coreapi/CMakeLists.txt
View file @
547822cd
...
...
@@ -144,7 +144,7 @@ endif()
if
(
WIN32 AND NOT
"
${
CMAKE_SYSTEM_NAME
}
"
STREQUAL
"WindowsPhone"
)
list
(
APPEND LIBS shlwapi
)
endif
()
if
(
GETTEXT
_FOUND
)
if
(
INTL
_FOUND
)
list
(
APPEND LIBS
${
INTL_LIBRARIES
}
)
endif
()
...
...
gtk/CMakeLists.txt
View file @
547822cd
...
...
@@ -84,7 +84,7 @@ endif()
set_target_properties
(
linphone-gtk PROPERTIES OUTPUT_NAME linphone LINKER_LANGUAGE CXX
)
target_include_directories
(
linphone-gtk PUBLIC
${
GTK2_INCLUDE_DIRS
}
${
INTL_INCLUDE_DIRS
}
)
target_link_libraries
(
linphone-gtk linphone
${
GTK2_LIBRARIES
}
)
if
(
GETTEXT
_FOUND
)
if
(
INTL
_FOUND
)
target_link_libraries
(
linphone-gtk
${
INTL_LIBRARIES
}
)
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment