commit 1de90e6645e3de31f5fcbdb81d18823ec0147077
parent 579ce87208a0722093c679cd61a8564ca5e23d1b
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 30 Oct 2023 16:27:26 +0100
Remove CMake support
POSIX make is now the only supported build system.
Diffstat:
| D | cmake/CMakeLists.txt | | | 105 | ------------------------------------------------------------------------------- |
1 file changed, 0 insertions(+), 105 deletions(-)
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
@@ -1,105 +0,0 @@
-# Copyright (C) 2018-2020, 2023 |Méso|Star> (contact@meso-star.com)
-# Copyright (C) 2018, 2019 Centre National de la Recherche Scientifique
-# Copyright (C) 2018, 2019 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(htpp C)
-
-set(HTPP_SOURCE_DIR ${PROJECT_SOURCE_DIR}/../src)
-
-################################################################################
-# Check dependencies
-################################################################################
-find_package(RCMake 0.3 REQUIRED)
-find_package(RSys 0.9 REQUIRED)
-find_package(StarCMap 0.0 REQUIRED)
-find_package(OpenMP 1.2 REQUIRED)
-
-set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${RCMAKE_SOURCE_DIR})
-include(rcmake)
-include(rcmake_runtime)
-
-include_directories(
- ${RSys_INCLUDE_DIR}
- ${StarCMap_INCLUDE_DIR}
- ${CMAKE_CURRENT_BINARY_DIR})
-
-################################################################################
-# Configure and define targets
-################################################################################
-set(VERSION_MAJOR 0)
-set(VERSION_MINOR 4)
-set(VERSION_PATCH 4)
-set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
-
-configure_file(${HTPP_SOURCE_DIR}/htpp_version.h.in
- ${CMAKE_CURRENT_BINARY_DIR}/htpp_version.h @ONLY)
-
-set(HTPP_FILES_SRC htpp.c)
-set(HTPP_FILES_DOC COPYING README.md)
-
-# Prepend each file in the `HTPP_FILES_<SRC|INC>' list by `HTPP_SOURCE_DIR'
-rcmake_prepend_path(HTPP_FILES_SRC ${HTPP_SOURCE_DIR})
-rcmake_prepend_path(HTPP_FILES_DOC ${PROJECT_SOURCE_DIR}/../)
-
-add_executable(htpp ${HTPP_FILES_SRC})
-
-if(CMAKE_COMPILER_IS_GNUCC)
- set(MATH_LIB m)
-endif()
-
-target_link_libraries(htpp RSys StarCMap ${MATH_LIB} ${GETOPT_LIB})
-set_target_properties(htpp PROPERTIES COMPILE_FLAGS "${OpenMP_C_FLAGS}")
-
-if(CMAKE_COMPILER_IS_GNUCC)
- target_link_libraries(htpp m)
- set_target_properties(htpp PROPERTIES LINK_FLAGS "${OpenMP_C_FLAGS}")
-endif()
-
-set_target_properties(htpp PROPERTIES
- COMPILE_FLAGS "${OpenMP_C_FLAGS}"
- VERSION ${VERSION}
- SOVERSION ${VERSION_MAJOR})
-
-################################################################################
-# Man page
-###############################################################################
-find_program(SCDOC NAMES scdoc)
-if(NOT SCDOC)
- message(WARNING
- "The `scdoc' program is missing. "
- "The htpp man page cannot be generated.")
-else()
- set(_src ${PROJECT_SOURCE_DIR}/../doc/htpp.1.scd)
- add_custom_command(
- OUTPUT htpp.1
- COMMAND ${SCDOC} < ${_src} > htpp.1
- DEPENDS ${_src}
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
- COMMENT "Buid ROFF man page htpp.1"
- VERBATIM)
- add_custom_target(man-roff ALL DEPENDS htpp.1)
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/htpp.1 DESTINATION share/man/man1)
-endif()
-
-################################################################################
-# Define output & install directories
-################################################################################
-install(TARGETS htpp
- ARCHIVE DESTINATION bin
- LIBRARY DESTINATION lib
- RUNTIME DESTINATION bin)
-install(FILES ${HTPP_FILES_DOC} DESTINATION share/doc/htpp)