Skip to content

Commit

Permalink
add meson build support
Browse files Browse the repository at this point in the history
  • Loading branch information
zoziha committed Feb 1, 2023
1 parent 738fad7 commit 76e9280
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
project(
'argparse-f',
'fortran',
version : '0.1.0',
license : 'MIT',
default_options : [
'buildtype=debugoptimized',
]
)

argparse_f_src = files(
'src/argparse-f.f90'
)

argparse_f_lib = library(
meson.project_name(),
sources : argparse_f_src,
version : meson.project_version(),
install : true,
)

argparse_f_inc = argparse_f_lib.private_dir_include()
argparse_f_dep = declare_dependency(
link_with : argparse_f_lib,
include_directories : argparse_f_inc,
)

test(
'argparse_f_check',
executable(
'argparse_f_check',
'test/check.f90',
dependencies : argparse_f_dep,
),
)

0 comments on commit 76e9280

Please sign in to comment.