commit 14fdc7e4d3c61e668a52307d40ccc38b61a70ea2
parent c38266a0caeab615fd455185ccc8b9ea048a3e8f
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 18 Oct 2023 16:37:23 +0200
Remove CMake support
POSIX make is now the only supported build system.
Diffstat:
| D | cmake/CMakeLists.txt | | | 89 | ------------------------------------------------------------------------------- |
1 file changed, 0 insertions(+), 89 deletions(-)
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
@@ -1,89 +0,0 @@
-# Copyright (C) 2015, 2016, 2019, 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-stl C)
-enable_testing()
-
-option(NO_TEST "Do not compile the test pograms" OFF)
-
-set(SSTL_SOURCE_DIR ${PROJECT_SOURCE_DIR}/../src)
-
-################################################################################
-# Dependencies
-################################################################################
-find_package(RCMake 0.2 REQUIRED)
-find_package(RSys 0.6 REQUIRED)
-include_directories(${RSys_INCLUDE_DIR})
-
-set(CMAKE_MODULE_PATH ${RCMAKE_SOURCE_DIR})
-include(rcmake)
-include(rcmake_runtime)
-rcmake_append_runtime_dirs(_runtime_dirs RSys)
-
-################################################################################
-# Define targets
-################################################################################
-set(SSTL_FILES_INC_API sstl.h)
-set(SSTL_FILES_INC )
-set(SSTL_FILES_SRC sstl.c)
-set(SSTL_FILES_DOC COPYING.fr COPYING.en README.md)
-rcmake_prepend_path(SSTL_FILES_SRC ${SSTL_SOURCE_DIR})
-rcmake_prepend_path(SSTL_FILES_INC ${SSTL_SOURCE_DIR})
-rcmake_prepend_path(SSTL_FILES_INC_API ${SSTL_SOURCE_DIR})
-rcmake_prepend_path(SSTL_FILES_DOC ${SSTL_SOURCE_DIR}/../)
-
-add_library(sstl SHARED ${SSTL_FILES_SRC} ${SSTL_FILES_INC} ${SSTL_FILES_INC_API})
-target_link_libraries(sstl RSys)
-if(CMAKE_COMPILER_IS_GNUCC)
- target_link_libraries(sstl m)
-endif()
-
-set(VERSION_MAJOR 0)
-set(VERSION_MINOR 4)
-set(VERSION_PATCH 1)
-set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
-set_target_properties(sstl PROPERTIES
- DEFINE_SYMBOL SSTL_SHARED_BUILD
- VERSION ${VERSION}
- SOVERSION ${VERSION_MAJOR})
-
-rcmake_setup_devel(sstl StarSTL ${VERSION} star/sstl_version.h)
-
-################################################################################
-# Define tests
-################################################################################
-if(NOT NO_TEST)
- add_executable(test_sstl ${SSTL_SOURCE_DIR}/test_sstl.c)
- target_link_libraries(test_sstl sstl)
- add_test(test_sstl test_sstl)
- rcmake_set_test_runtime_dirs(test_sstl _runtime_dirs)
-
- add_executable(test_sstl_load ${SSTL_SOURCE_DIR}/test_sstl_load.c)
- target_link_libraries(test_sstl_load sstl)
- add_test(test_sstl_load test_sstl_load)
- rcmake_set_test_runtime_dirs(test_sstl_load _runtime_dirs)
-endif(NOT NO_TEST)
-
-################################################################################
-# Install directories
-################################################################################
-install(TARGETS sstl
- ARCHIVE DESTINATION bin
- LIBRARY DESTINATION lib
- RUNTIME DESTINATION bin)
-install(FILES ${SSTL_FILES_INC_API} DESTINATION include/star)
-install(FILES ${SSTL_FILES_DOC} DESTINATION share/doc/star-stl)
-