Skip to content

Commit

Permalink
Make source headers consistent (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
aradi committed Feb 25, 2024
1 parent 4b692d6 commit 6db7e87
Show file tree
Hide file tree
Showing 19 changed files with 76 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# This file is part of Fortuno.
# Licensed under the BSD-2-Clause Plus Patent license.
# SPDX-License-Identifier: BSD-2-Clause-Patent

# The CMake config files were created based on the public template at
# https://github.com/LecrisUT/CMake-Template


#[=================================================================================================[
# Basic project definition #
]=================================================================================================]
Expand Down
4 changes: 4 additions & 0 deletions cmake/FortunoHelpers.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file is part of Fortuno.
# Licensed under the BSD-2-Clause Plus Patent license.
# SPDX-License-Identifier: BSD-2-Clause-Patent

# Sets up the build type.
function (fortuno_setup_build_type default_build_type)

Expand Down
Empty file removed cmake/config.cmake
Empty file.
4 changes: 4 additions & 0 deletions example/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file is part of Fortuno.
# Licensed under the BSD-2-Clause Plus Patent license.
# SPDX-License-Identifier: BSD-2-Clause-Patent

list(APPEND CMAKE_MESSAGE_CONTEXT Example)

add_library(Fortuno_example_mylib)
Expand Down
4 changes: 4 additions & 0 deletions example/meson.build
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file is part of Fortuno.
# Licensed under the BSD-2-Clause Plus Patent license.
# SPDX-License-Identifier: BSD-2-Clause-Patent

example_mylib_lib = library(
'mylib',
sources: ['mylib.f90'],
Expand Down
4 changes: 4 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file is part of Fortuno.
# Licensed under the BSD-2-Clause Plus Patent license.
# SPDX-License-Identifier: BSD-2-Clause-Patent

project(
'fortuno',
'fortran',
Expand Down
4 changes: 4 additions & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# This file is part of Fortuno.
# Licensed under the BSD-2-Clause Plus Patent license.
# SPDX-License-Identifier: BSD-2-Clause-Patent

option('build_examples', type: 'boolean', value: false, description: 'Build examples')
4 changes: 4 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file is part of Fortuno.
# Licensed under the BSD-2-Clause Plus Patent license.
# SPDX-License-Identifier: BSD-2-Clause-Patent

target_sources(
Fortuno PRIVATE
fortuno.f90
Expand Down
4 changes: 4 additions & 0 deletions src/fortuno/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file is part of Fortuno.
# Licensed under the BSD-2-Clause Plus Patent license.
# SPDX-License-Identifier: BSD-2-Clause-Patent

target_sources(
Fortuno PRIVATE
argumentparser.f90
Expand Down
4 changes: 4 additions & 0 deletions src/fortuno/meson.build
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file is part of Fortuno.
# Licensed under the BSD-2-Clause Plus Patent license.
# SPDX-License-Identifier: BSD-2-Clause-Patent

sources += files(
'argumentparser.f90',
'basetypes.f90',
Expand Down
4 changes: 4 additions & 0 deletions src/fortuno/serial/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file is part of Fortuno.
# Licensed under the BSD-2-Clause Plus Patent license.
# SPDX-License-Identifier: BSD-2-Clause-Patent

target_sources(
Fortuno PRIVATE
serialbasetypes.f90
Expand Down
4 changes: 4 additions & 0 deletions src/fortuno/serial/meson.build
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file is part of Fortuno.
# Licensed under the BSD-2-Clause Plus Patent license.
# SPDX-License-Identifier: BSD-2-Clause-Patent

sources += files(
'serialbasetypes.f90',
'serialcase.f90',
Expand Down
4 changes: 4 additions & 0 deletions src/meson.build
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file is part of Fortuno.
# Licensed under the BSD-2-Clause Plus Patent license.
# SPDX-License-Identifier: BSD-2-Clause-Patent

sources += files(
'fortuno.f90'
)
Expand Down
4 changes: 4 additions & 0 deletions test/export/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file is part of Fortuno.
# Licensed under the BSD-2-Clause Plus Patent license.
# SPDX-License-Identifier: BSD-2-Clause-Patent

cmake_minimum_required(VERSION 3.22...3.28)

project(
Expand Down
4 changes: 4 additions & 0 deletions test/export/app/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# This file is part of Fortuno.
# Licensed under the BSD-2-Clause Plus Patent license.
# SPDX-License-Identifier: BSD-2-Clause-Patent

target_sources(testapp PRIVATE testapp.f90)
target_link_libraries(testapp PRIVATE Fortuno::Fortuno)
4 changes: 4 additions & 0 deletions test/export/app/meson.build
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file is part of Fortuno.
# Licensed under the BSD-2-Clause Plus Patent license.
# SPDX-License-Identifier: BSD-2-Clause-Patent

sources += files(
'testapp.f90'
)
4 changes: 4 additions & 0 deletions test/export/app/testapp.f90
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
! This file is part of Fortuno.
! Licensed under the BSD-2-Clause Plus Patent license.
! SPDX-License-Identifier: BSD-2-Clause-Patent

!> Test app driving Fortuno unit tests.
program testapp
use fortuno, only : execute_serial_cmd_app, is_equal, test => serial_case_item,&
Expand Down
4 changes: 4 additions & 0 deletions test/export/meson.build
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file is part of Fortuno.
# Licensed under the BSD-2-Clause Plus Patent license.
# SPDX-License-Identifier: BSD-2-Clause-Patent

project(
'fortuno_test_export',
'fortran',
Expand Down
4 changes: 4 additions & 0 deletions test/export/meson_options.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This file is part of Fortuno.
# Licensed under the BSD-2-Clause Plus Patent license.
# SPDX-License-Identifier: BSD-2-Clause-Patent

option(
'fortuno_subproject',
type: 'boolean',
Expand Down

0 comments on commit 6db7e87

Please sign in to comment.