commit a695b698bd5ae71d1b17f0912b0ee9ca0763cb6f
parent 99b807e404ec0a4351897de3bbadedd2d36dcab3
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 31 Oct 2023 11:41:21 +0100
Remove CMake support
POSIX make is the only supported build system.
Diffstat:
| D | cmake/CMakeLists.txt | | | 124 | ------------------------------------------------------------------------------- |
1 file changed, 0 insertions(+), 124 deletions(-)
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
@@ -1,124 +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 |Méso|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(rnsl C)
-enable_testing()
-
-set(RNSL_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.13 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(RNSL_FILES_SRC
- rnsl.c
- rnsl_log.c)
-set(RNSL_FILES_INC
- rnsl_c.h
- rnsl_log.h)
-set(RNSL_FILES_INC_API
- rnsl.h)
-
-set(RNSL_FILES_DOC COPYING README.md)
-
-# Prepend each file in the `RNSL_FILES_<SRC|INC>' list by `RNSL_SOURCE_DIR'
-rcmake_prepend_path(RNSL_FILES_SRC ${RNSL_SOURCE_DIR})
-rcmake_prepend_path(RNSL_FILES_INC ${RNSL_SOURCE_DIR})
-rcmake_prepend_path(RNSL_FILES_INC_API ${RNSL_SOURCE_DIR})
-rcmake_prepend_path(RNSL_FILES_DOC ${PROJECT_SOURCE_DIR}/../)
-
-add_library(rnsl SHARED ${RNSL_FILES_SRC} ${RNSL_FILES_INC} ${RNSL_FILES_INC_API})
-target_link_libraries(rnsl RSys)
-
-if(CMAKE_COMPILER_IS_GNUCC)
- target_link_libraries(rnsl m)
-endif()
-
-set_target_properties(rnsl PROPERTIES
- DEFINE_SYMBOL RNSL_SHARED_BUILD
- VERSION ${VERSION}
- SOVERSION ${VERSION_MAJOR})
-
-rcmake_setup_devel(rnsl RNSL ${VERSION} rad-net/rnsl_version.h)
-
-################################################################################
-# Add tests
-################################################################################
-if(NOT NO_TEST)
- function(new_test _name)
- add_executable(${_name} ${RNSL_SOURCE_DIR}/${_name}.c)
- target_link_libraries(${_name} rnsl RSys ${ARGN})
- add_test(${_name} ${_name})
- endfunction()
-
- new_test(test_rnsl)
- new_test(test_rnsl_load)
-endif()
-
-################################################################################
-# Man page
-###############################################################################
-find_program(SCDOC NAMES scdoc)
-if(NOT SCDOC)
- message(WARNING
- "The `scdoc' program is missing. "
- "The Rad-Net File List man page cannot be generated.")
-else()
- set(_src ${PROJECT_SOURCE_DIR}/../doc/rnsl.5.scd)
- add_custom_command(
- OUTPUT rnsl.5
- COMMAND ${SCDOC} < ${_src} > rnsl.5
- DEPENDS ${_src}
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
- COMMENT "Buid ROFF man page rnsl.5"
- VERBATIM)
- add_custom_target(man-roff ALL DEPENDS rnsl.5)
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/rnsl.5 DESTINATION share/man/man5)
-endif()
-
-################################################################################
-# Define output & install directories
-################################################################################
-install(TARGETS rnsl
- ARCHIVE DESTINATION bin
- LIBRARY DESTINATION lib
- RUNTIME DESTINATION bin)
-install(FILES ${RNSL_FILES_INC_API} DESTINATION include/rad-net)
-install(FILES ${RNSL_FILES_DOC} DESTINATION share/doc/rnsl)