From f181873254eccaf60774992cbc5242ef5bceff32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20Aradi?= Date: Sun, 3 Mar 2024 14:03:26 +0100 Subject: [PATCH] Make minor cosmetic changes (#9) --- CMakeLists.txt | 21 --------------------- README.rst | 15 ++++++--------- cmake/fortuno.pc.in | 2 +- src/CMakeLists.txt | 11 +++++++++++ 4 files changed, 18 insertions(+), 31 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8dda373..547dbb6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,31 +54,10 @@ endif () fortuno_setup_build_type("RelWithDebInfo") set(BUILD_SHARED_LIBS ${FORTUNO_BUILD_SHARED_LIBS}) -# Report configuration -feature_summary( - FILENAME ${CMAKE_CURRENT_BINARY_DIR}/Fortuno.info - VAR Fortuno_Info - DESCRIPTION "Fortuno features and external libraries" - FATAL_ON_MISSING_REQUIRED_PACKAGES - WHAT ALL -) -message(STATUS ${Fortuno_Info}) - #[=================================================================================================[ # Main definition # ]=================================================================================================] -add_library(Fortuno) -set_target_properties( - Fortuno PROPERTIES - VERSION ${PROJECT_VERSION} - # SOVERSION ${PROJECT_VERSION_MAJOR} - SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} - EXPORT_NAME Fortuno - OUTPUT_NAME fortuno -) -add_library(Fortuno::Fortuno ALIAS Fortuno) - add_subdirectory(src) if (FORTUNO_BUILD_EXAMPLES) add_subdirectory(example) diff --git a/README.rst b/README.rst index af8b98b..8fd8e3a 100644 --- a/README.rst +++ b/README.rst @@ -4,13 +4,10 @@ Fortuno – extensible unit testing framework for Fortran The **Fortuno** (Fortran Unit Testing Objects) project offers a flexible, extensible, object oriented unit testing framework for the Fortran language. It -puts strong emphasis on the simplicity of the user interface (minimizing the -amount of boiler plate code when writing unit tests) as well as to modularity -and extensibility (offering building blocks for customized unit testing -systems.) - -It is written in Fortran 2018 and can be directly used without a need for a -special pre-processor. +puts strong emphasis on the simplicity of the user interface by minimizing the +amount of boiler plate code when writing unit tests, as well as to modularity +and extensibility by offering building blocks for customized unit testing +systems. **Fortuno** provides @@ -255,7 +252,7 @@ License ======= Fortuno is licensed under the `BSD-2-Clause Plus Patent License `_. -(This `OSI-approved `_ license +This `OSI-approved `_ license combines the 2-clause BSD license with an explicit patent grant from -contributors.) The SPDX license identifier for this project is +contributors. The SPDX license identifier for this project is `BSD-2-Clause-Patent `_. diff --git a/cmake/fortuno.pc.in b/cmake/fortuno.pc.in index d44a586..1914a35 100644 --- a/cmake/fortuno.pc.in +++ b/cmake/fortuno.pc.in @@ -2,5 +2,5 @@ Name: @PROJECT_NAME@ Description: @PROJECT_DESCRIPTION@ Version: @PROJECT_VERSION@ -Libs: -L@CMAKE_INSTALL_FULL_LIBDIR@ -lfortuno Cflags: -I@CMAKE_INSTALL_FULL_LIBDIR@/@FORTUNO_INSTALL_MODULEDIR@ +Libs: -L@CMAKE_INSTALL_FULL_LIBDIR@ -lfortuno diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 735cdf1..7d0bc5a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -2,6 +2,17 @@ # Licensed under the BSD-2-Clause Plus Patent license. # SPDX-License-Identifier: BSD-2-Clause-Patent +add_library(Fortuno) +set_target_properties( + Fortuno PROPERTIES + VERSION ${PROJECT_VERSION} + # SOVERSION ${PROJECT_VERSION_MAJOR} + SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} + EXPORT_NAME Fortuno + OUTPUT_NAME fortuno +) +add_library(Fortuno::Fortuno ALIAS Fortuno) + target_sources( Fortuno PRIVATE fortuno.f90