initial commit, added basic build system with conan/meson, dependency on fftw3
This commit is contained in:
commit
bf6fa7231e
5 changed files with 50 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
build/
|
22
README.md
Normal file
22
README.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Elemmire
|
||||
|
||||
## Steps to build
|
||||
|
||||
* Install Conan >=2
|
||||
```
|
||||
conda install -c conda-forge conan
|
||||
```
|
||||
* Create a conan profile
|
||||
```
|
||||
conan profile detect --force
|
||||
```
|
||||
* Install dependencies with conan
|
||||
```
|
||||
conan install . --output-folder=build --build=missing
|
||||
```
|
||||
* Build with meson
|
||||
```
|
||||
cd build
|
||||
meson setup --native-file conan_meson_native.ini .. meson-src
|
||||
meson compile -C meson-src
|
||||
```
|
6
conanfile.txt
Normal file
6
conanfile.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
[requires]
|
||||
fftw/3.3.9
|
||||
|
||||
[generators]
|
||||
PkgConfigDeps
|
||||
MesonToolchain
|
8
meson.build
Normal file
8
meson.build
Normal file
|
@ -0,0 +1,8 @@
|
|||
project('Elemmire', 'c',
|
||||
version : '0.1',
|
||||
default_options : ['warning_level=3'])
|
||||
|
||||
fftw = dependency('fftw3', version : '3.3.9')
|
||||
exe = executable('Elemmire', 'src/main.c', dependencies: fftw)
|
||||
|
||||
test('basic', exe)
|
13
src/main.c
Normal file
13
src/main.c
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include <stdio.h>
|
||||
#include <fftw3.h>
|
||||
|
||||
#define PROJECT_NAME "Elemmire"
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
if(argc != 1) {
|
||||
printf("%s takes no arguments.\n", argv[0]);
|
||||
return 1;
|
||||
}
|
||||
printf("This is project %s.\n", PROJECT_NAME);
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Reference in a new issue