rngrd

Describe a surface and its physical properties
git clone git://git.meso-star.fr/rngrd.git
Log | Files | Refs | README | LICENSE

commit 5df66d0fe517d2ae34980009df5744d23afbe2ab
parent 0a0d07de5899e4384db4ae7ab2383feeb091c235
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue, 31 Oct 2023 12:24:02 +0100

Remove CMake support

POSIX make becomes the only supported build system.

Diffstat:
Dcmake/CMakeLists.txt | 148-------------------------------------------------------------------------------
1 file changed, 0 insertions(+), 148 deletions(-)

diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt @@ -1,148 +0,0 @@ -# Copyright (C) 2022, 2023 Centre National de la Recherche Scientifique -# Copyright (C) 2022, 2023 Institut Pierre-Simon Laplace -# Copyright (C) 2022, 2023 Institut de Physique du Globe de Paris -# Copyright (C) 2022, 2023 |Meso|Star> (contact@meso-star.com) -# Copyright (C) 2022, 2023 Observatoire de Paris -# Copyright (C) 2022, 2023 Université de Reims Champagne-Ardenne -# Copyright (C) 2022, 2023 Université de Versaille Saint-Quentin -# Copyright (C) 2022, 2023 Université Paul Sabatier -# -# 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(rngrd C) -enable_testing() - -set(RNGRD_SOURCE_DIR ${PROJECT_SOURCE_DIR}/../src) -option(NO_TEST "Do not build tests" OFF) - -################################################################################ -# Check dependencies -################################################################################ -find_package(MruMtl 0.1 REQUIRED) -find_package(RCMake 0.4 REQUIRED) -find_package(RNSL REQUIRED) -find_package(RSys 0.9 REQUIRED) -find_package(Star3D 0.8 REQUIRED) -find_package(StarBuffer REQUIRED) -find_package(StarMesh REQUIRED) -find_package(StarSF 0.7 REQUIRED) - -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${RCMAKE_SOURCE_DIR}) -include(rcmake) -include(rcmake_runtime) - -include_directories( - ${MruMtl_INCLUDE_DIR} - ${RNSL_INCLUDE_DIR} - ${RSys_INCLUDE_DIR} - ${Star3D_INCLUDE_DIR} - ${StarBuffer_INCLUDE_DIR} - ${StarMesh_INCLUDE_DIR} - ${StarSF_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(RNGRD_FILES_SRC - rngrd.c - rngrd_log.c - rngrd_mesh.c - rngrd_properties.c) -set(RNGRD_FILES_INC - rngrd_c.h - rngrd_log.h) -set(RNGRD_FILES_INC_API rngrd.h) -set(RNGRD_FILES_DOC COPYING README.md) - -# Prepend each file in the `RNGRD_FILES_<SRC|INC>' list by `RNGRD_SOURCE_DIR' -rcmake_prepend_path(RNGRD_FILES_SRC ${RNGRD_SOURCE_DIR}) -rcmake_prepend_path(RNGRD_FILES_INC ${RNGRD_SOURCE_DIR}) -rcmake_prepend_path(RNGRD_FILES_INC_API ${RNGRD_SOURCE_DIR}) -rcmake_prepend_path(RNGRD_FILES_DOC ${PROJECT_SOURCE_DIR}/../) - -add_library(rngrd SHARED ${RNGRD_FILES_SRC} ${RNGRD_FILES_INC} ${RNGRD_FILES_INC_API}) -target_link_libraries(rngrd MruMtl RNSL RSys Star3D StarBuffer StarMesh StarSF) - -if(CMAKE_COMPILER_IS_GNUCC) - target_link_libraries(rngrd m) -endif() - -set_target_properties(rngrd PROPERTIES - DEFINE_SYMBOL RNGRD_SHARED_BUILD - VERSION ${VERSION} - SOVERSION ${VERSION_MAJOR}) - -rcmake_setup_devel(rngrd RNGRD ${VERSION} rad-net/rngrd_version.h) - -################################################################################ -# Add tests -################################################################################ -if(NOT NO_TEST) - function(build_test _name) - add_executable(${_name} - ${RNGRD_SOURCE_DIR}/${_name}.c) - target_link_libraries(${_name} rngrd RSys) - endfunction() - - function(new_test _name) - build_test(${_name}) - add_test(${_name} ${_name}) - endfunction() - - build_test(test_rngrd) - -endif() - -################################################################################ -# Man page -############################################################################### -find_program(SCDOC NAMES scdoc) -if(NOT SCDOC) - message(WARNING - "The `scdoc' program is missing. " - "The Rad Net GRounD man page cannot be generated.") -else() - set(_man_names rnsp.5) - - foreach(_man IN LISTS _man_names) - set(_src ${PROJECT_SOURCE_DIR}/../doc/${_man}.scd) - add_custom_command( - OUTPUT ${_man} - COMMAND ${SCDOC} < ${_src} > ${_man} - DEPENDS ${_src} - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} - COMMENT "Buid ROFF man page ${_man}" - VERBATIM) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_man} DESTINATION share/man/man5) - endforeach() - add_custom_target(man-roff ALL DEPENDS ${_man_names}) -endif() - - -################################################################################ -# Define output & install directories -################################################################################ -install(TARGETS rngrd - ARCHIVE DESTINATION bin - LIBRARY DESTINATION lib - RUNTIME DESTINATION bin) -install(FILES ${RNGRD_FILES_INC_API} DESTINATION include/rad-net) -install(FILES ${RNGRD_FILES_DOC} DESTINATION share/doc/rngrd) -