File tree 2 files changed +26
-1
lines changed
2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ include(FetchContent)
17
17
include (cmake/options .cmake)
18
18
include (cmake/compilers.cmake)
19
19
20
+ include (cmake/functional.cmake)
20
21
include (cmake/h5fortran.cmake)
21
22
include (cmake/json.cmake)
22
23
@@ -62,7 +63,13 @@ add_library(neural
62
63
src/nf/io/nf_io_hdf5.f90
63
64
src/nf/io/nf_io_hdf5_submodule.f90
64
65
)
65
- target_link_libraries (neural PRIVATE h5fortran::h5fortran HDF5::HDF5 jsonfortran::jsonfortran)
66
+
67
+ target_link_libraries (neural PRIVATE
68
+ functional::functional
69
+ h5fortran::h5fortran
70
+ HDF5::HDF5
71
+ jsonfortran::jsonfortran
72
+ )
66
73
67
74
install (TARGETS neural)
68
75
Original file line number Diff line number Diff line change
1
+ FetchContent_Declare(functional
2
+ GIT_REPOSITORY https://github.com/wavebitscientific/functional-fortran
3
+ GIT_TAG 0.6.1
4
+ GIT_SHALLOW true
5
+ )
6
+
7
+ FetchContent_Populate(functional)
8
+
9
+ add_library (functional ${functional_SOURCE_DIR} /src/functional.f90)
10
+ target_include_directories (functional PUBLIC
11
+ $<BUILD_INTERFACE:${CMAKE_BINARY_DIR} /include >
12
+ $<INSTALL_INTERFACE:include >
13
+ )
14
+
15
+ add_library (functional::functional INTERFACE IMPORTED GLOBAL )
16
+ target_link_libraries (functional::functional INTERFACE functional)
17
+
18
+ install (TARGETS functional)
You can’t perform that action at this time.
0 commit comments