1
0
mirror of https://github.com/bk138/gromit-mpx.git synced 2021-05-25 12:43:10 +03:00

CMake: prepare gettext usage

re #116
This commit is contained in:
Christian Beier
2021-02-01 21:29:39 +01:00
parent d231016317
commit dd37b0b95a
2 changed files with 8 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ include(GNUInstallDirs)
set(target_name gromit-mpx)
set(version 1.4)
set(LOCALE_DOMAIN ${CMAKE_PROJECT_NAME})
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
if(CMAKE_GENERATOR MATCHES "Unix Makefiles|Ninja")
# some LSP servers expect compile_commands.json in the project root
@@ -20,6 +21,7 @@ set(CMAKE_C_FLAGS " ${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter")
configure_file(build-config.h_cmake_in build-config.h)
find_package(PkgConfig)
find_package(Gettext)
pkg_check_modules(gtk3 REQUIRED "gtk+-3.0 >= 3.22")
pkg_check_modules(appindicator3 REQUIRED "appindicator3-0.1 >= 0.4.92")

View File

@@ -10,6 +10,12 @@
/* Define to the version of this package. */
#define PACKAGE_VERSION "${version}"
/* The package's locale domain. */
#define PACKAGE_LOCALE_DOMAIN "${LOCALE_DOMAIN}"
/* The directory where the package's translations reside. */
#define PACKAGE_LOCALE_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/locale"
#define SYSCONFDIR "${CMAKE_INSTALL_FULL_SYSCONFDIR}"
#endif /* BUILD_CONFIG_H */