🎉 start c++ project.

main
bog 2023-10-07 14:11:43 +02:00
parent c27a560312
commit a688963903
6 changed files with 80 additions and 2 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*~*
*\#*
build
.cache

11
Makefile Normal file
View File

@ -0,0 +1,11 @@
.PHONY: build tests
build:
meson setup build
meson compile -C build
tests: build
build/pwq-tests
install: tests
meson install -C build

View File

@ -1,3 +1,21 @@
# pywiq
# Pywiq Terminal Code Editor
Pywiq is a text editor specialized in programming and running
exclusively on the terminal.
Pywiq Terminal Code Editor
## How to install
Installing Pywiq is as easy as using a Makefile.
Behind it, the project uses meson build system.
```bash
$ sudo make install
```
It will build, test and install pywiq. Once installed, you can run
pywiq using the command ``pwq``.
## How to contribute ?
Don't.
## License
Pywiq is released under the GPLv3 license.

37
meson.build Normal file
View File

@ -0,0 +1,37 @@
project('pywiq',
'cpp',
version: '0.0.0',
default_options: [
'prefix=/usr',
'warning_level=3',
'cpp_std=c++17',
])
pwq_lib = static_library('pywiq',
sources: [
],
dependencies: [
])
pwq_dep = declare_dependency(
link_with: pwq_lib,
include_directories: ['src']
)
executable('pwq',
sources: [
'src/main.cpp',
],
dependencies: [
pwq_dep
],
install: true)
executable('pwq-tests',
sources: [
'tests/main.cpp',
],
dependencies: [
pwq_dep,
dependency('catch2')
])

6
src/main.cpp Normal file
View File

@ -0,0 +1,6 @@
#include <iostream>
int main(int, char**)
{
return 0;
}

2
tests/main.cpp Normal file
View File

@ -0,0 +1,2 @@
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>