commit 1ffe514c587c4346a7b2458b400d4b22d0c48a5e
parent c6b454bdb3bcaede621f3488ba54512224342915
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 18 Oct 2023 11:50:47 +0200
Remove CMake support
POSIX make is now the only supported build system
Diffstat:
| D | cmake/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) 2014-2017, 2020-2023 Vincent Forest (vaplv@free.fr)
-#
-# 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(aw C)
-cmake_policy(SET CMP0011 NEW)
-enable_testing()
-
-option(NO_TEST "Do not compile the test pograms" OFF)
-
-set(AW_SOURCE_DIR ${PROJECT_SOURCE_DIR}/../src)
-
-################################################################################
-# Dependencies
-################################################################################
-find_package(RCMake 0.4 REQUIRED)
-find_package(RSys 0.9 REQUIRED)
-
-set(CMAKE_MODULE_PATH ${RCMAKE_SOURCE_DIR})
-include(rcmake)
-include(rcmake_runtime)
-rcmake_append_runtime_dirs(_runtime_dirs RSys)
-
-################################################################################
-# Define targets
-################################################################################
-set(VERSION_MAJOR 2)
-set(VERSION_MINOR 0)
-set(VERSION_PATCH 1)
-set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
-
-set(AW_FILES_SRC aw_c.h aw.c aw_obj.c aw_mtl.c)
-set(AW_FILES_INC aw.h)
-set(AW_FILES_DOC COPYING README.md)
-rcmake_prepend_path(AW_FILES_SRC ${AW_SOURCE_DIR})
-rcmake_prepend_path(AW_FILES_INC ${AW_SOURCE_DIR})
-rcmake_prepend_path(AW_FILES_DOC ${PROJECT_SOURCE_DIR}/../)
-
-add_library(aw SHARED ${AW_FILES_SRC} ${AW_FILES_INC})
-set_target_properties(aw PROPERTIES
- DEFINE_SYMBOL AW_SHARED_BUILD
- VERSION ${VERSION}
- SOVERSION ${VERSION_MAJOR})
-target_link_libraries(aw RSys)
-
-if(MSVC)
- # The CL compiler does not support the strtok_r POSIX function but proposes
- # the strtok_s function that have the same profile and does the same thing.
- set_target_properties(aw PROPERTIES COMPILE_FLAGS "/Dstrtok_r=strtok_s")
-endif(MSVC)
-
-rcmake_setup_devel(aw AW ${VERSION} aw_version.h)
-
-################################################################################
-# Define tests
-################################################################################
-if(NOT NO_TEST)
- add_executable(test_aw_obj ${AW_SOURCE_DIR}/test_aw_obj.c)
- target_link_libraries(test_aw_obj aw)
- add_test(test_aw_obj test_aw_obj)
- rcmake_set_test_runtime_dirs(test_aw_obj _runtime_dirs)
-
- add_executable(test_aw_mtl ${AW_SOURCE_DIR}/test_aw_mtl.c)
- target_link_libraries(test_aw_mtl aw)
- add_test(test_aw_mtl test_aw_mtl)
- rcmake_set_test_runtime_dirs(test_aw_mtl _runtime_dirs)
-
- add_executable(test_aw ${AW_SOURCE_DIR}/test_aw.c)
- target_link_libraries(test_aw aw)
-endif(NOT NO_TEST)
-
-################################################################################
-# Install directories
-################################################################################
-install(TARGETS aw
- ARCHIVE DESTINATION bin
- LIBRARY DESTINATION lib
- RUNTIME DESTINATION bin)
-install(FILES ${AW_FILES_INC} DESTINATION include)
-install(FILES ${AW_FILES_DOC} DESTINATION share/doc/aw)
-