Skip to content

Commit a7b9006

Browse files
committed
initial restructure toward fpm package
1 parent 7c6d666 commit a7b9006

20 files changed

+10
-4
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,21 +78,21 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES Cray)
7878
endif()
7979

8080
# library to archive (libneural.a)
81-
add_library(neural src/lib/mod_activation.f90 src/lib/mod_io.f90 src/lib/mod_kinds.f90 src/lib/mod_layer.f90 src/lib/mod_mnist.f90 src/lib/mod_network.f90 src/lib/mod_parallel.f90 src/lib/mod_random.f90)
81+
add_library(neural src/mod_activation.f90 src/mod_io.f90 src/mod_kinds.f90 src/mod_layer.f90 src/mod_mnist.f90 src/mod_network.f90 src/mod_parallel.f90 src/mod_random.f90)
8282

8383
# Remove leading or trailing whitespace
8484
string(REGEX REPLACE "^ | $" "" LIBS "${LIBS}")
8585

8686
# tests
8787
enable_testing()
8888
foreach(execid mnist network_save network_sync set_activation_function)
89-
add_executable(test_${execid} src/tests/test_${execid}.f90)
89+
add_executable(test_${execid} test/test_${execid}.f90)
9090
target_link_libraries(test_${execid} neural ${LIBS})
9191
add_test(test_${execid} bin/test_${execid})
9292
endforeach()
9393

9494
foreach(execid mnist mnist_epochs save_and_load simple sine)
95-
add_executable(example_${execid} src/tests/example_${execid}.f90)
95+
add_executable(example_${execid} examples/example_${execid}.f90)
9696
target_link_libraries(example_${execid} neural ${LIBS})
9797
add_test(example_${execid} bin/example_${execid})
9898
endforeach()

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018-2020 Milan Curcic and neural-fortran contributors
3+
Copyright (c) 2018-2021 neural-fortran contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
File renamed without changes.
File renamed without changes.
File renamed without changes.

fpm.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name = "neural"
2+
version = "0.1.0"
3+
license = "MIT"
4+
author = "Milan Curcic"
5+
maintainer = "[email protected]"
6+
copyright = "Copyright 2018-2021, neural-fortran contributors"
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)