From dc277a9aae16be38742f77f3c64ebf96eedd85f0 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Wed, 16 Apr 2025 21:08:10 +0700 Subject: [PATCH] added cmake and meson/ninja build --- CMakeLists.txt | 10 ++++++++++ meson.build | 7 +++++++ 2 files changed, 17 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 meson.build diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..4384303 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,10 @@ +cmake_minimum_required(VERSION 3.6) +project(pwdgen) +set(CMAKE_C_FLAGS "-Wall") + +add_executable( + pwdgen + src/main.c +) + +install(TARGETS pwdgen DESTINATION bin) diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..126cb55 --- /dev/null +++ b/meson.build @@ -0,0 +1,7 @@ +project('pwdgen', 'c', default_options: 'c_args=-Wall') + +executable( + 'pwdgen', + 'src/main.c', + install: true, +)