diff --git a/CMakeLists.txt b/CMakeLists.txt index d5c0771..3190278 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,11 @@ -cmake_minimum_required(VERSION 3.14...3.22) +cmake_minimum_required(VERSION 3.19...3.22) + +file(READ ${CMAKE_CURRENT_LIST_DIR}/codemeta.json _j) +string(JSON PROJECT_VERSION GET ${_j} version) project(RPNcalc LANGUAGES Fortran -VERSION 1.2.1 +VERSION ${PROJECT_VERSION} HOMEPAGE_URL https://github.com/scivision/rpn-calc-fortran) include(CTest) diff --git a/codemeta.json b/codemeta.json new file mode 100644 index 0000000..f27e9a9 --- /dev/null +++ b/codemeta.json @@ -0,0 +1,30 @@ +{ + "@context": "https://doi.org/10.5063/schema/codemeta-2.0", + "@type": "SoftwareSourceCode", + "codeRepository": "https://github.com/scivision/rpn-calc-fortran", + "contIntegration": "https://github.com/scivision/rpn-calc-fortran/actions", + "dateModified": "2021-12-22", + "downloadUrl": "https://github.com/scivision/rpn-calc-fortran/releases", + "issueTracker": "https://github.com/scivision/rpn-calc-fortran/issues", + "name": "RPN Calculator", + "version": "1.3.0", + "identifier": "", + "description": "Reverse Polish Notation (RPN) calculator. Over 100 functions not in standard Fortran", + "applicationCategory": "calculator", + "developmentStatus": "active", + "keywords": [ + "RPN", + "calculator" + ], + "programmingLanguage": [ + "Fortran" + ], + "author": [ + { + "@type": "Person", + "@id": "https://orcid.org/0000-0002-1637-6526", + "givenName": "Michael", + "familyName": "Hirsch" + } + ] +} diff --git a/meson.build b/meson.build index 775c73f..5614137 100644 --- a/meson.build +++ b/meson.build @@ -1,7 +1,6 @@ project('RPNcalc', 'fortran', default_options : ['default_library=static', 'warning_level=1', 'buildtype=release'], - meson_version: '>=0.51', - version: '1.2.1') + meson_version: '>=0.51') fc = meson.get_compiler('fortran') if fc.get_id() == 'gcc' @@ -15,4 +14,4 @@ rpncalc_exe = executable('rpncalc', rpncalc_src, install : true) # tests -subdir('src/tests') \ No newline at end of file +subdir('src/tests')