star-vx

Structuring voxels for ray-tracing
git clone git://git.meso-star.fr/star-vx.git
Log | Files | Refs | README | LICENSE

commit 09796faf99a5480c391e3c630fcf8518440c29d7
parent 6e0e279bf9fd9797017d5695041888a683cadbb0
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 27 Oct 2023 10:57:13 +0200

Remove CMake support

POSIX make is now the only supported build system.

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

diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt @@ -1,117 +0,0 @@ -# Copyright (C) 2018, 2020-2023 |Méso|Star> (contact@meso-star.com) -# Copyright (C) 2018 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(svx C) -enable_testing() - -set(SVX_SOURCE_DIR ${PROJECT_SOURCE_DIR}/../src) -option(NO_TEST "Do not build tests" OFF) - -################################################################################ -# Check dependencies -################################################################################ -find_package(RCMake 0.3 REQUIRED) -find_package(RSys 0.12 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 2) -set(VERSION_PATCH 1) -set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}) - -set(SVX_FILES_SRC - svx_bintree.c - svx_bintree_trace_ray.c - svx_buffer.c - svx_device.c - svx_octree.c - svx_octree_trace_ray.c - svx_tree.c) -set(SVX_FILES_INC - svx_buffer.h - svx_device.h - svx_tree.h - svx_tree_builder.h - svx_tree_generic_func.h) -set(SVX_FILES_INC_API - svx.h) - -set(SVX_FILES_DOC COPYING README.md) - -# Prepend each file in the `SVX_FILES_<SRC|INC>' list by `SVX_SOURCE_DIR' -rcmake_prepend_path(SVX_FILES_SRC ${SVX_SOURCE_DIR}) -rcmake_prepend_path(SVX_FILES_INC ${SVX_SOURCE_DIR}) -rcmake_prepend_path(SVX_FILES_INC_API ${SVX_SOURCE_DIR}) -rcmake_prepend_path(SVX_FILES_DOC ${PROJECT_SOURCE_DIR}/../) - -if(CMAKE_COMPILER_IS_GNUCC) - set(MATH_LIB m) -endif() - -add_library(svx SHARED ${SVX_FILES_SRC} ${SVX_FILES_INC} ${SVX_FILES_INC_API}) -target_link_libraries(svx RSys ${MATH_LIB}) - -set_target_properties(svx PROPERTIES - DEFINE_SYMBOL SVX_SHARED_BUILD - VERSION ${VERSION} - SOVERSION ${VERSION_MAJOR}) - -rcmake_setup_devel(svx StarVX ${VERSION} star/svx_version.h) - -################################################################################ -# Add tests -################################################################################ -if(NOT NO_TEST) - function(build_test _name) - add_executable(${_name} - ${SVX_SOURCE_DIR}/${_name}.c - ${SVX_SOURCE_DIR}/test_svx_utils.h) - target_link_libraries(${_name} svx RSys ${ARGN}) - endfunction() - - function(new_test _name) - build_test(${_name} ${ARGN}) - add_test(${_name} ${_name}) - endfunction() - - new_test(test_svx_bintree) - new_test(test_svx_device) - new_test(test_svx_octree) - new_test(test_svx_octree_trace_ray ${MATH_LIB}) - new_test(test_svx_bintree_trace_ray ${MATH_LIB}) - - rcmake_copy_runtime_libraries(test_svx_octree_trace_ray) -endif() - -################################################################################ -# Define output & install directories -################################################################################ -install(TARGETS svx - ARCHIVE DESTINATION bin - LIBRARY DESTINATION lib - RUNTIME DESTINATION bin) -install(FILES ${SVX_FILES_INC_API} DESTINATION include/star) -install(FILES ${SVX_FILES_DOC} DESTINATION share/doc/star-vx) -