commit 9bdbb3067313ade535bd30af05a448ad4a7a9b0a
parent e56b7705da8a8faf03c13bde420a9c49df0e3165
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 31 Oct 2023 11:19:12 +0100
Remove CMake support
POSIX make is the only supported build system.
Diffstat:
| D | cmake/CMakeLists.txt | | | 162 | ------------------------------------------------------------------------------- |
1 file changed, 0 insertions(+), 162 deletions(-)
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
@@ -1,162 +0,0 @@
-# Copyright (C) 2022, 2023 |Méso|Star> (contact@meso-star.com)
-# Copyright (C) 2020, 2021 Centre National de la Recherche Scientifique
-#
-# 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(atrstm C)
-enable_testing()
-
-set(ATRSTM_SOURCE_DIR ${PROJECT_SOURCE_DIR}/../src)
-option(NO_TEST "Do not build tests" OFF)
-
-################################################################################
-# Check dependencies
-################################################################################
-find_package(AtrRI 0.0 REQUIRED)
-find_package(AtrTP 0.0 REQUIRED)
-find_package(OpenMP 1.2 REQUIRED)
-find_package(RCMake 0.4 REQUIRED)
-find_package(RSys 0.12 REQUIRED)
-find_package(StarMesh REQUIRED)
-find_package(StarUVM 0.0 REQUIRED)
-find_package(StarVX 0.2 REQUIRED)
-find_package(RSIMD 0.3)
-if(RSIMD_FOUND)
- option(USE_SIMD "Use SIMD instruction sets" ON)
-endif()
-
-if(USE_SIMD)
- message(STATUS "Use SIMD instruction sets")
-else()
- message(STATUS "Do not use SIMD instruction sets")
-endif()
-
-set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${RCMAKE_SOURCE_DIR})
-include(rcmake)
-include(rcmake_runtime)
-
-include_directories(
- ${AtrRI_INCLUDE_DIR}
- ${AtrTP_INCLUDE_DIR}
- ${RSys_INCLUDE_DIR}
- ${StarMesh_INCLUDE_DIR}
- ${StarUVM_INCLUDE_DIR}
- ${StarVX_INCLUDE_DIR})
-
-################################################################################
-# Configure and define targets
-################################################################################
-set(VERSION_MAJOR 0)
-set(VERSION_MINOR 0)
-set(VERSION_PATCH 1)
-set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
-
-set(ATRSTM_FILES_SRC
- atrstm.c
- atrstm_cache.c
- atrstm_dump_svx_octree.c
- atrstm_log.c
- atrstm_partition.c
- atrstm_radcoefs.c
- atrstm_rdgfa.c
- atrstm_setup_octrees.c
- atrstm_setup_uvm.c
- atrstm_svx.c)
-
-set(ATRSTM_FILES_INC
- atrstm_c.h
- atrstm_cache.h
- atrstm_log.h
- atrstm_partition.h
- atrstm_radcoefs.h
- atrstm_setup_octrees.h
- atrstm_svx.h)
-
-set(ATRSTM_FILES_INC_API
- atrstm.h)
-
-set(ATRSTM_FILES_DOC COPYING README.md)
-
-# SIMD files
-if(USE_SIMD)
- set(ATRSTM_FILES_SRC ${ATRSTM_FILES_SRC} atrstm_radcoefs_simd4.c)
- set(ATRSTM_FILES_INC ${ATRSTM_FILES_INC}
- atrstm_radcoefs_simd4.h
- atrstm_rdgfa_simd4.h)
-endif()
-
-# Prepend each file in the `ATRSTM_FILES_<SRC|INC>' list by `ATRSTM_SOURCE_DIR'
-rcmake_prepend_path(ATRSTM_FILES_SRC ${ATRSTM_SOURCE_DIR})
-rcmake_prepend_path(ATRSTM_FILES_INC ${ATRSTM_SOURCE_DIR})
-rcmake_prepend_path(ATRSTM_FILES_INC_API ${ATRSTM_SOURCE_DIR})
-rcmake_prepend_path(ATRSTM_FILES_DOC ${PROJECT_SOURCE_DIR}/../)
-
-add_library(atrstm SHARED
- ${ATRSTM_FILES_SRC}
- ${ATRSTM_FILES_INC}
- ${ATRSTM_FILES_INC_API})
-target_link_libraries(atrstm AtrRI AtrTP RSys StarMesh StarUVM StarVX m)
-
-# Setup SIMD support on the target
-if(USE_SIMD)
- target_link_libraries(atrstm RSIMD)
- set_target_properties(atrstm PROPERTIES
- COMPILE_DEFINITIONS ATRSTM_USE_SIMD)
-endif()
-
-if(CMAKE_COMPILER_IS_GNUCC)
- set_target_properties(atrstm PROPERTIES LINK_FLAGS "${OpenMP_C_FLAGS}")
-endif()
-
-set_target_properties(atrstm PROPERTIES
- COMPILE_FLAGS ${OpenMP_C_FLAGS}
- DEFINE_SYMBOL ATRSTM_SHARED_BUILD
- VERSION ${VERSION}
- SOVERSION ${VERSION_MAJOR})
-
-rcmake_setup_devel(atrstm AtrSTM ${VERSION} astoria/atrstm_version.h)
-
-################################################################################
-# Add tests
-################################################################################
-if(NOT NO_TEST)
- function(build_test _name)
- add_executable(${_name}
- ${ATRSTM_SOURCE_DIR}/${_name}.c)
- target_link_libraries(${_name} atrstm RSys ${ARGN})
- endfunction()
-
- function(new_test _name)
- build_test(${_name} ${ARGN})
- add_test(${_name} ${_name})
- endfunction()
-
- build_test(test_atrstm)
- new_test(test_atrstm_radcoefs)
- if(USE_SIMD)
- new_test(test_atrstm_radcoefs_simd)
- endif()
-endif()
-
-################################################################################
-# Define output & install directories
-################################################################################
-install(TARGETS atrstm
- ARCHIVE DESTINATION bin
- LIBRARY DESTINATION lib
- RUNTIME DESTINATION bin)
-install(FILES ${ATRSTM_FILES_INC_API} DESTINATION include/astoria)
-install(FILES ${ATRSTM_FILES_DOC} DESTINATION share/doc/atrstm)
-