@Gitter :gitter.im/cnruby
Code ID: basic_124
Code Name: Hello, Targets!
- About The Project
- The Structure of Project
- The
CMake
Codes of Project - Demonstrate The Development of Project
- Final Summary
- References
- VS Code 1.43.0+
- CMake 3.17.0+
- Library gettext 0.20.1
- Library language-pack-de
- Library language-pack-zh-hans
- Library language-pack-zh-hant, optional
# For Ubuntu 20.04+
sudo apt-get update
sudo apt-get install -y gettext
sudo apt-get install -y language-pack-de
sudo apt-get install -y language-pack-zh-hans
sudo apt-get install -y language-pack-zh-hant
git clone https://github.com/cnruby/w3h1_cmake.git basic_124
cd basic_124
git checkout basic_124
code .
#<!-- markdown-exec(cmd:cat docs/output/tree.txt) -->#
.
├── cmake
│ ├── CMakeLists.txt
│ ├── config.h.in
│ ├── GetLocaleDir.cmake
│ ├── Initialize.cmake
│ └── TargetAll.cmake
├── CMakeLists.txt
├── config
│ └── config.hxx
└── src
├── CMakeLists.txt
├── main_apt.cxx
└── main_debconf.cxx
#<!-- /markdown-exec -->
#<!-- markdown-exec(cmd:cat src/CMakeLists.txt) -->#
add_executable(
apt_main_124
main_apt.cxx
)
add_executable(
debconf_main_124
main_debconf.cxx
)
#<!-- /markdown-exec -->
#<!-- markdown-exec(cmd:cat cmake/TargetAll.cmake) -->#
# For Ubuntu
include_directories(${_PROJECT_CONFIG_DIR})
# For MacOS
# include_directories( ${Intl_INCLUDE_DIRS} ${_PROJECT_CONFIG_DIR} )
# include_directories(${Intl_INCLUDE_DIRS} ${_PROJECT_CONFIG_DIR})
# link_directories(${Intl_LIBRARIES})
#<!-- /markdown-exec -->
@Gitter: gitter.im/cnruby
@Github: github.com/cnruby
@Twitter: twitter.com/cnruby
@Blogspot: cnruby.blogspot.com
- https://cmake.org/cmake/help/latest/command/configure_file.html
- https://gitlab.kitware.com/cmake/community/-/wikis/doc/tutorials/How-to-create-a-ProjectConfig.cmake-file
- https://riptutorial.com/cmake/example/26652/generate-a-cplusplus-configure-file-with-cmake
- https://stackoverflow.com/questions/48580399/how-to-ensure-a-generated-config-h-file-is-in-the-include-path
- https://github.com/bast/cmake-example/tree/master/cmake
- https://cmake.org/pipermail/cmake/2006-May/009049.html
- https://discourse.brew.sh/t/failed-to-set-locale-category-lc-numeric-to-en-ru/5092/5
- https://raw.githubusercontent.com/git/git/master/po/de.po
- https://raw.githubusercontent.com/git/git/master/po/zh_CN.po
- https://www.boost.org/doc/libs/1_57_0/libs/locale/doc/html/messages_formatting.html
- https://cmake.org/cmake/help/v3.0/variable/ENV.html
- https://cmake.org/cmake/help/latest/module/FindIntl.html
- https://stackoverflow.com/questions/1003360/complete-c-i18n-gettext-hello-world-example/1033337
- https://fedoraproject.org/wiki/How_to_do_I18N_through_gettext
- https://stackoverflow.com/questions/1003360/complete-c-i18n-gettext-hello-world-example
- https://stackoverflow.com/questions/21370363/link-error-installing-rcpp-library-not-found-for-lintl
- https://ubuntuforums.org/showthread.php?t=108879
- https://github.com/neovim/neovim/blob/master/src/nvim/po/de.po
- https://progmar.net.pl/en/knowledge-base/gettext
- https://stackoverflow.com/questions/11789615/how-to-support-multiple-language-in-a-linux-c-c-program
- https://stackoverflow.com/questions/11370684/what-is-libintl-h-and-where-can-i-get-it
- https://nkumar.fedorapeople.org/helloi18n/helloworldintld/
- https://nkumar.fedorapeople.org/helloi18n/helloworld/
- https://stackoverflow.com/questions/31356199/multiple-make-targets-in-the-same-cmake-project
- https://stackoverflow.com/questions/47553569/how-can-i-build-multiple-targets-using-cmake-build?rq=1
- https://cmake.org/pipermail/cmake/2013-March/054016.html