polygon

Polygon triangulation
git clone git://git.meso-star.fr/polygon.git
Log | Files | Refs | README | LICENSE

commit 83134da8f2c3f2fc7a94378a9b24263326308e1d
parent 0e4ee88669fc0d32378e2416fb426ea725c82fb2
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 18 Oct 2023 14:30:14 +0200

Remove CMake support

POSIX make is now the only supported build system.

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

diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt @@ -1,91 +0,0 @@ -# Copyright (C) 2014-2017, 2021-2023 Vincent Forest (vaplv@free.fr) -# -# 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(polygon C) -enable_testing() - -option(NO_TEST "Do not compile the test pograms" OFF) - -set(POLYGON_SOURCE_DIR ${PROJECT_SOURCE_DIR}/../src) - -################################################################################ -# Dependencies -################################################################################ -find_package(RCMake 0.4 REQUIRED) -find_package(RSys 0.6 REQUIRED) - -set(CMAKE_MODULE_PATH ${RCMAKE_SOURCE_DIR}) -include(rcmake) -include(rcmake_runtime) - -rcmake_append_runtime_dirs(_runtime_dirs RSys) - -################################################################################ -# Define targets -################################################################################ -set(VERSION_MAJOR 0) -set(VERSION_MINOR 1) -set(VERSION_PATCH 4) -set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}) - -set(POLYGON_FILES_SRC polygon.c) -set(POLYGON_FILES_INC polygon.h) -set(POLYGON_FILES_DOC COPYING README.md) -rcmake_prepend_path(POLYGON_FILES_SRC ${POLYGON_SOURCE_DIR}) -rcmake_prepend_path(POLYGON_FILES_INC ${POLYGON_SOURCE_DIR}) -rcmake_prepend_path(POLYGON_FILES_DOC ${PROJECT_SOURCE_DIR}/../) - -if(CMAKE_COMPILER_IS_GNUCC) - set(MATH_LIB m) -endif() - -add_library(polygon SHARED ${POLYGON_FILES_SRC} ${POLYGON_FILES_INC}) -set_target_properties(polygon PROPERTIES - DEFINE_SYMBOL POLYGON_SHARED_BUILD - VERSION ${VERSION} - SOVERSION ${VERSION_MAJOR}) -target_link_libraries(polygon RSys ${MATH_LIB}) - -rcmake_setup_devel(polygon Polygon ${VERSION} polygon_version.h) - -################################################################################ -# Define tests -################################################################################ -if(NOT NO_TEST) - function(new_test _name) - add_executable(${_name} - ${POLYGON_SOURCE_DIR}/${_name}.c - ${POLYGON_SOURCE_DIR}/test_polygon_utils.h) - target_link_libraries(${_name} polygon ${MATH_LIB}) - add_test(${_name} ${_name}) - - rcmake_set_test_runtime_dirs(${_name} _runtime_dirs) - endfunction() - - new_test(test_polygon) - new_test(test_polygon1) -endif() - -################################################################################ -# Install directories -################################################################################ -install(TARGETS polygon - ARCHIVE DESTINATION lib - LIBRARY DESTINATION lib - RUNTIME DESTINATION bin) -install(FILES ${POLYGON_FILES_INC} DESTINATION include/) -install(FILES ${POLYGON_FILES_DOC} DESTINATION share/doc/polygon/) -