star-3daw

Create star-3d geometries from OBJ files
git clone git://git.meso-star.fr/star-3daw.git
Log | Files | Refs | README | LICENSE

commit 1c08b4b6c2a8c3b16bee10e9a88f5a9abfcc106b
parent 08df083f113708e76bd1e95739e6fdb5f8efc6fc
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 19 Oct 2023 10:46:05 +0200

Remove CMake support

POSIX make is now the only supported build system.

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

diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt @@ -1,93 +0,0 @@ -# Copyright (C) 2015, 2016, 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(star-3daw C) -enable_testing() - -set(S3DAW_SOURCE_DIR ${PROJECT_SOURCE_DIR}/../src) -option(NO_TEST "Disable the test" OFF) - -################################################################################ -# Check dependencies -################################################################################ -find_package(AW 2.0.0 REQUIRED) -find_package(Polygon 0.1 REQUIRED) -find_package(RCMake 0.2 REQUIRED) -find_package(RSys 0.6 REQUIRED) -find_package(Star3D 0.3 REQUIRED) - -include_directories( - ${AW_INCLUDE_DIR} - ${Polygone_INCLUDE_DIR} - ${RSys_INCLUDE_DIR} - ${Star3D_INCLUDE_DIR}) - -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${RCMAKE_SOURCE_DIR}) -include(rcmake) -include(rcmake_runtime) - -################################################################################ -# Configure and define targets -################################################################################ -set(VERSION_MAJOR 0) -set(VERSION_MINOR 4) -set(VERSION_PATCH 1) -set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}) - -set(S3DAW_FILES_SRC s3daw.c) -set(S3DAW_FILES_INC_API s3daw.h) -set(S3DAW_FILES_INC ) -set(S3DAW_FILES_DOC COPYING.en COPYING.fr README.md) - -# Prepend each file in the `S3DAW_FILES_<SRC|INC>' list by `S3DAW_SOURCE_DIR' -rcmake_prepend_path(S3DAW_FILES_SRC ${S3DAW_SOURCE_DIR}) -rcmake_prepend_path(S3DAW_FILES_INC ${S3DAW_SOURCE_DIR}) -rcmake_prepend_path(S3DAW_FILES_INC_API ${S3DAW_SOURCE_DIR}) -rcmake_prepend_path(S3DAW_FILES_DOC ${PROJECT_SOURCE_DIR}/../) - -add_library(s3daw SHARED ${S3DAW_FILES_SRC} ${S3DAW_FILES_INC} ${S3DAW_FILES_INC_API}) -set_target_properties(s3daw PROPERTIES - DEFINE_SYMBOL S3DAW_SHARED_BUILD - VERSION ${VERSION} - SOVERSION ${VERSION_MAJOR}) - -if(CMAKE_COMPILER_IS_GNUCC) - set(MATH_LIB m) -endif() - -target_link_libraries(s3daw AW Polygon RSys Star3D ${MATH_LIB}) -rcmake_setup_devel(s3daw Star3DAW ${VERSION} star/s3daw_version.h) - -################################################################################ -# Add tests -################################################################################ -if(NOT NO_TEST) - add_executable(test_s3daw ${S3DAW_SOURCE_DIR}/test_s3daw.c) - target_link_libraries(test_s3daw s3daw RSys Star3D) - add_test(test_s3daw test_s3daw) - rcmake_copy_runtime_libraries(test_s3daw) -endif() - -################################################################################ -# Define output & install directories -################################################################################ -install(TARGETS s3daw - ARCHIVE DESTINATION bin - LIBRARY DESTINATION lib - RUNTIME DESTINATION bin) -install(FILES ${S3DAW_FILES_INC_API} DESTINATION include/star) -install(FILES ${S3DAW_FILES_DOC} DESTINATION share/doc/star-3daw) -