star-3dut

Generate meshes of simple geometric shapes
git clone git://git.meso-star.fr/star-3dut.git
Log | Files | Refs | README | LICENSE

commit ab6b87996d08209eeec37b2c7806bbbf75edcf3f
parent bfff72eebc07b9b68cd39a1d776595d971757ee1
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 27 Oct 2023 14:33:00 +0200

Remove CMake support

POSIX make is now the only supported build system.

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

diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt @@ -1,107 +0,0 @@ -# Copyright (C) 2016, 2017, 2020, 2021, 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(s3dut C) -enable_testing() - -option(NO_TEST "Do not compile the test pograms" OFF) - -set(S3DUT_SOURCE_DIR ${PROJECT_SOURCE_DIR}/../src) - -################################################################################ -# Dependencies -################################################################################ -find_package(RCMake 0.4 REQUIRED) -find_package(RSys 0.6 REQUIRED) - -include_directories(${RSys_INCLUDE_DIR}) - -set(CMAKE_MODULE_PATH ${RCMAKE_SOURCE_DIR}) -include(rcmake) -include(rcmake_runtime) - -################################################################################ -# Define targets -################################################################################ -set(VERSION_MAJOR 0) -set(VERSION_MINOR 3) -set(VERSION_PATCH 3) -set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}) - -set(S3DUT_FILES_SRC - s3dut_cuboid.c - s3dut_cylinder.c - s3dut_mesh.c - s3dut_sphere.c - s3dut_super_shape.c) -set(S3DUT_FILES_INC s3dut_mesh.h) -set(S3DUT_FILES_INC_API s3dut.h) -set(S3DUT_FILES_DOC COPYING README.md) - -rcmake_prepend_path(S3DUT_FILES_SRC ${S3DUT_SOURCE_DIR}) -rcmake_prepend_path(S3DUT_FILES_INC ${S3DUT_SOURCE_DIR}) -rcmake_prepend_path(S3DUT_FILES_INC_API ${S3DUT_SOURCE_DIR}) -rcmake_prepend_path(S3DUT_FILES_DOC ${PROJECT_SOURCE_DIR}/../) - -if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC) - set(MATH_LIB m) -endif() - -add_library(s3dut SHARED - ${S3DUT_FILES_SRC} ${S3DUT_FILES_INC} ${S3DUT_FILES_INC_API}) -set_target_properties(s3dut PROPERTIES - DEFINE_SYMBOL S3DUT_SHARED_BUILD - VERSION ${VERSION} - SOVERSION ${VERSION_MAJOR}) -target_link_libraries(s3dut RSys ${MATH_LIB}) - -rcmake_setup_devel(s3dut Star3DUT ${VERSION} star/s3dut_version.h) - -################################################################################ -# Define tests -################################################################################ -if(NOT NO_TEST) - - function(new_test _name) - add_executable(${_name} ${S3DUT_SOURCE_DIR}/${_name}.c) - target_link_libraries(${_name} s3dut RSys) - add_test(${_name} ${_name}) - endfunction() - - new_test(test_s3dut_cuboid) - new_test(test_s3dut_cylinder) - new_test(test_s3dut_thin_cylinder) - new_test(test_s3dut_thick_cylinder) - new_test(test_s3dut_hemisphere) - new_test(test_s3dut_sphere) - new_test(test_s3dut_super_shape) - new_test(test_s3dut_thick_truncated_super_shape) - new_test(test_s3dut_thick_truncated_sphere) - new_test(test_s3dut_truncated_sphere) - - rcmake_copy_runtime_libraries(test_s3dut_cuboid) -endif() - -################################################################################ -# Install directories -################################################################################ -install(TARGETS s3dut - ARCHIVE DESTINATION lib - LIBRARY DESTINATION lib - RUNTIME DESTINATION bin) -install(FILES ${S3DUT_FILES_INC_API} DESTINATION include/star/) -install(FILES ${S3DUT_FILES_DOC} DESTINATION share/doc/star-3dut/) -