star-hitran

Load line-by-line data from the HITRAN database
git clone git://git.meso-star.fr/star-hitran.git
Log | Files | Refs | README | LICENSE

commit ad5af2eaf1a316df0e248cc01243405f4e6a28e7
parent fbe31af853aeac6d0fc9b0912b171f5268d1bbe0
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 15 Dec 2025 16:41:10 +0100

Remove CMake support

POSIX make is now the only supported build system.

Update the README accordingly.

Diffstat:
MREADME.md | 32+++++++++++++++++---------------
Dcmake/CMakeLists.txt | 107-------------------------------------------------------------------------------
2 files changed, 17 insertions(+), 122 deletions(-)

diff --git a/README.md b/README.md @@ -1,19 +1,21 @@ # Star-HITRAN -Star-HITRAN is C library whose purpose is to load the Line-by-Line data and the -isotopologue metadata from the the [HITRAN database](https://hitran.org/). +Star-HITRAN is C library whose purpose is to load the Line-by-Line data +and the isotopologue metadata from the [HITRAN +database](https://hitran.org/). -Star-HITRAN relies on the [CMake](http://www.cmake.org) and the -[RCMake](https://gitlab.com/vaplv/rcmake/) packages to build. It also depends -on the [RSys](https://gitlab.com/vaplv/rsys/), library. +## Requirements -First ensure that CMake is installed on your system. Then install the RCMake -package as well as the aforementioned prerequisites. Finally generate the -project from the `cmake/CMakeLists.txt` file by appending to the -`CMAKE_PREFIX_PATH` variable the install directories of its dependencies. The -resulting project can be edited, built, tested and installed as any CMake -project. Refer to the [CMake](https://cmake.org/documentation) for further -informations on CMake. +- C compiler +- POSIX make +- pkg-config +- RSys + +## Installation + +Edit config.mk as needed, then run: + + make clean install ## Copyright notice @@ -24,6 +26,6 @@ Copyright (C) 2022 Université Paul Sabatier ## License -Star-HITRAN is free software released under the GPL v3+ license: GNU GPL version -3 or later. You are welcome to redistribute it under certain conditions; refer -to the COPYING file for details. +Star-HITRAN is free software released under the GPL v3+ license: GNU GPL +version 3 or later. You are welcome to redistribute it under certain +conditions; refer to the COPYING file for details. diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt @@ -1,107 +0,0 @@ -# Copyright (C) 2022 CNRS - LMD -# Copyright (C) 2022 |Meso|Star> (contact@meso-star.com) -# Copyright (C) 2022 Université Paul Sabatier - IRIT -# Copyright (C) 2022 Université Paul Sabatier - Laplace -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -cmake_minimum_required(VERSION 3.1) -project(shtr C) -enable_testing() - -set(SHTR_SOURCE_DIR ${PROJECT_SOURCE_DIR}/../src) -option(NO_TEST "Do not build tests" OFF) - -################################################################################ -# Check dependencies -################################################################################ -find_package(RCMake 0.4 REQUIRED) -find_package(RSys 0.12.1 REQUIRED) - -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${RCMAKE_SOURCE_DIR}) -include(rcmake) -include(rcmake_runtime) - -include_directories(${RSys_INCLUDE_DIR}) - -################################################################################ -# Configure and define targets -################################################################################ -set(VERSION_MAJOR 0) -set(VERSION_MINOR 0) -set(VERSION_PATCH 0) -set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}) - -set(SHTR_FILES_SRC - shtr.c - shtr_log.c - shtr_isotope_metadata.c - shtr_param.c - shtr_line_list.c - shtr_line_view.c) -set(SHTR_FILES_INC - shtr_c.h - shtr_line_list_c.h - shtr_log.h - shtr_param.h) -set(SHTR_FILES_INC_API - shtr.h) - -set(SHTR_FILES_DOC COPYING README.md) - -# Prepend each file in the `SHTR_FILES_<SRC|INC>' list by `SHTR_SOURCE_DIR' -rcmake_prepend_path(SHTR_FILES_SRC ${SHTR_SOURCE_DIR}) -rcmake_prepend_path(SHTR_FILES_INC ${SHTR_SOURCE_DIR}) -rcmake_prepend_path(SHTR_FILES_INC_API ${SHTR_SOURCE_DIR}) -rcmake_prepend_path(SHTR_FILES_DOC ${PROJECT_SOURCE_DIR}/../) - -add_library(shtr SHARED - ${SHTR_FILES_SRC} ${SHTR_FILES_INC} ${SHTR_FILES_INC_API}) -target_link_libraries(shtr RSys m) - -set_target_properties(shtr PROPERTIES - DEFINE_SYMBOL SHTR_SHARED_BUILD - VERSION ${VERSION} - SOVERSION ${VERSION_MAJOR}) - -rcmake_setup_devel(shtr StarHITRAN ${VERSION} star/shtr_version.h) - -################################################################################ -# Add tests -################################################################################ -if(NOT NO_TEST) - function(build_test _name) - add_executable(${_name} ${SHTR_SOURCE_DIR}/${_name}.c) - target_link_libraries(${_name} shtr RSys ${ARGN}) - endfunction() - - function(new_test _name) - build_test(${_name} ${ARGN}) - add_test(${_name} ${_name}) - endfunction() - - new_test(test_shtr) - new_test(test_shtr_isotope_metadata) - new_test(test_shtr_lines) -endif() - -################################################################################ -# Define output & install directories -################################################################################ -install(TARGETS shtr - ARCHIVE DESTINATION bin - LIBRARY DESTINATION lib - RUNTIME DESTINATION bin) -install(FILES ${SHTR_FILES_INC_API} DESTINATION include/star) -install(FILES ${SHTR_FILES_DOC} DESTINATION share/doc/star-hitran)