mirror of
https://github.com/eddyem/eddys_snippets.git
synced 2026-06-21 19:06:20 +03:00
restructurization
This commit is contained in:
7
_deprecated/sharedlib_template/examples/CMakeLists.txt
Normal file
7
_deprecated/sharedlib_template/examples/CMakeLists.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
cmake_minimum_required(VERSION 3.9)
|
||||
project(examples)
|
||||
link_libraries(usefull_macros)
|
||||
include_directories(../)
|
||||
|
||||
#target_link_libraries(hello -lm)
|
||||
add_executable(hello helloworld.c)
|
||||
15
_deprecated/sharedlib_template/examples/helloworld.c
Normal file
15
_deprecated/sharedlib_template/examples/helloworld.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <locale.h>
|
||||
#include <libintl.h>
|
||||
#include <usefull_macros.h>
|
||||
|
||||
int main(){
|
||||
setlocale(LC_ALL, "");
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
#if defined GETTEXT_PACKAGE && defined LOCALEDIR
|
||||
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
|
||||
textdomain(GETTEXT_PACKAGE);
|
||||
#endif
|
||||
|
||||
helloworld();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user