commit 6e7e5f5f6b54a9e018183a74d3accffcd11c3e3f parent 70b1b0403a2032480bf25e4239e3e7a8bf5e8d42 Author: Vincent Forest <vincent.forest@meso-star.com> Date: Fri, 27 Oct 2023 11:29:21 +0200 Remove CMake support POSIX make is now the only supported build system. Diffstat:
| D | cmake/CMakeLists.txt | | | 122 | ------------------------------------------------------------------------------- |
1 file changed, 0 insertions(+), 122 deletions(-)
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt @@ -1,122 +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(suvm C) -enable_testing() - -set(SUVM_SOURCE_DIR ${PROJECT_SOURCE_DIR}/../src) -option(NO_TEST "Do not build tests" OFF) - -################################################################################ -# Check dependencies -################################################################################ -find_package(Embree 4.0 REQUIRED) -find_package(RCMake 0.4 REQUIRED) -find_package(RSys 0.13 REQUIRED) -if(NOT NO_TEST) - find_package(StarMesh) -endif() - -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${RCMAKE_SOURCE_DIR}) -include(rcmake) -include(rcmake_runtime) - -include_directories(${RSys_INCLUDE_DIR}) - -if(CMAKE_COMPILER_IS_GNUCC) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99") -endif() - -################################################################################ -# Configure and define targets -################################################################################ -set(VERSION_MAJOR 0) -set(VERSION_MINOR 2) -set(VERSION_PATCH 0) -set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}) - -set(SUVM_FILES_SRC - suvm_device.c - suvm_primitive.c - suvm_volume.c - suvm_volume_at.c - suvm_volume_intersect_aabb.c) -set(SUVM_FILES_INC - suvm_device.h - suvm_volume.h) -set(SUVM_FILES_INC_API - suvm.h) - -set(SUVM_FILES_DOC COPYING README.md) - -# Prepend each file in the `SUVM_FILES_<SRC|INC>' list by `SUVM_SOURCE_DIR' -rcmake_prepend_path(SUVM_FILES_SRC ${SUVM_SOURCE_DIR}) -rcmake_prepend_path(SUVM_FILES_INC ${SUVM_SOURCE_DIR}) -rcmake_prepend_path(SUVM_FILES_INC_API ${SUVM_SOURCE_DIR}) -rcmake_prepend_path(SUVM_FILES_DOC ${PROJECT_SOURCE_DIR}/../) - -add_library(suvm SHARED ${SUVM_FILES_SRC} ${SUVM_FILES_INC} ${SUVM_FILES_INC_API}) -target_link_libraries(suvm RSys ${EMBREE_LIBRARIES}) -if(CMAKE_COMPILER_IS_GNUCC) - target_link_libraries(suvm m) -endif() - -set_target_properties(suvm PROPERTIES - DEFINE_SYMBOL SUVM_SHARED_BUILD - VERSION ${VERSION} - SOVERSION ${VERSION_MAJOR}) - -rcmake_setup_devel(suvm StarUVM ${VERSION} star/suvm_version.h) - -################################################################################ -# Add tests -################################################################################ -if(NOT NO_TEST) - function(build_test _name) - add_executable(${_name} - ${SUVM_SOURCE_DIR}/${_name}.c - ${SUVM_SOURCE_DIR}/test_suvm_utils.h) - target_link_libraries(${_name} suvm RSys ${ARGN}) - endfunction() - - function(new_test _name) - build_test(${_name} ${ARGN}) - add_test(${_name} ${_name}) - endfunction() - - new_test(test_suvm_device) - new_test(test_suvm_volume) - new_test(test_suvm_primitive_intersection) - - if(StarMesh_FOUND) - add_executable(suvm_voxelize ${SUVM_SOURCE_DIR}/suvm_voxelize.c) - target_link_libraries(suvm_voxelize RSys StarMesh suvm) - else() - message(STATUS "Star-Mesh was not found. " - "The program suvm_voxelize will not be built") - endif() -endif() - -################################################################################ -# Define output & install directories -################################################################################ -install(TARGETS suvm - ARCHIVE DESTINATION bin - LIBRARY DESTINATION lib - RUNTIME DESTINATION bin) -install(FILES ${SUVM_FILES_INC_API} DESTINATION include/star) -install(FILES ${SUVM_FILES_DOC} DESTINATION share/doc/star-uvm) -