mrumtl

Describe materials that vary spectrally
git clone git://git.meso-star.fr/mrumtl.git
Log | Files | Refs | README | LICENSE

commit e157262b7253581927ac7eedbf6424acc1d28930
parent d60e68d9b8692985387d328b69b8eba566a62631
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 30 Oct 2023 15:33:45 +0100

Remove CMake support

POSIX make is now the only supported build system.

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

diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt @@ -1,123 +0,0 @@ -# Copyright (C) 2020-2023 |Méso|Star> (contact@meso-star.com) -# -# 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(mrumtl C) -enable_testing() - -set(MRUMTL_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.9 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 1) -set(VERSION_PATCH 0) -set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}) - -set(MRUMTL_FILES_SRC - mrumtl.c - mrumtl_log.c - mrumtl_fetch.c) -set(MRUMTL_FILES_INC - mrumtl_brdf.h - mrumtl_c.h - mrumtl_log.h) -set(MRUMTL_FILES_INC_API mrumtl.h) -set(MRUMTL_FILES_DOC COPYING README.md) - -# Prepend each file in the `MRUMTL_FILES_<SRC|INC>' list by `MRUMTL_SOURCE_DIR' -rcmake_prepend_path(MRUMTL_FILES_SRC ${MRUMTL_SOURCE_DIR}) -rcmake_prepend_path(MRUMTL_FILES_INC ${MRUMTL_SOURCE_DIR}) -rcmake_prepend_path(MRUMTL_FILES_INC_API ${MRUMTL_SOURCE_DIR}) -rcmake_prepend_path(MRUMTL_FILES_DOC ${PROJECT_SOURCE_DIR}/../) - -add_library(mrumtl SHARED ${MRUMTL_FILES_SRC} ${MRUMTL_FILES_INC} ${MRUMTL_FILES_INC_API}) -target_link_libraries(mrumtl RSys) - -set_target_properties(mrumtl PROPERTIES - DEFINE_SYMBOL MRUMTL_SHARED_BUILD - VERSION ${VERSION} - SOVERSION ${VERSION_MAJOR}) - -rcmake_setup_devel(mrumtl MruMtl ${VERSION} modradurb/mrumtl_version.h) - -################################################################################ -# Add tests -################################################################################ -if(NOT NO_TEST) - function(build_test _name) - add_executable(${_name} - ${MRUMTL_SOURCE_DIR}/${_name}.c) - target_link_libraries(${_name} mrumtl RSys) - endfunction() - - function(new_test _name) - build_test(${_name}) - add_test(${_name} ${_name}) - endfunction() - - new_test(test_mrumtl) - new_test(test_mrumtl_wlens) - new_test(test_mrumtl_bands) - - build_test(test_mrumtl_load) -endif() - -################################################################################ -# Man pages -############################################################################### -find_program(SCDOC NAMES scdoc) -if(NOT SCDOC) - message(WARNING - "The `scdoc' program is missing. " - "The mrumtl man page cannot be generated.") -else() - set(_src ${PROJECT_SOURCE_DIR}/../doc/mrumtl.5.scd) - add_custom_command( - OUTPUT mrumtl.5 - COMMAND ${SCDOC} < ${_src} > mrumtl.5 - DEPENDS ${_src} - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} - COMMENT "Buid ROFF man page mrumtl.5" - VERBATIM) - add_custom_target(man-roff ALL DEPENDS mrumtl.5) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/mrumtl.5 DESTINATION share/man/man5) -endif() - - -################################################################################ -# Define output & install directories -################################################################################ -install(TARGETS mrumtl - ARCHIVE DESTINATION bin - LIBRARY DESTINATION lib - RUNTIME DESTINATION bin) -install(FILES ${MRUMTL_FILES_INC_API} DESTINATION include/modradurb) -install(FILES ${MRUMTL_FILES_DOC} DESTINATION share/doc/mrumtl) -