File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,20 @@ FetchContent_Declare(
30
30
GIT_TAG v4.6.3
31
31
)
32
32
33
- FetchContent_MakeAvailable (h5fortran )
33
+ FetchContent_Declare (
34
+ jsonfortran
35
+ GIT_REPOSITORY https://github.com/jacobwilliams/json-fortran
36
+ GIT_TAG 8.3.0
37
+ )
38
+
39
+ FetchContent_MakeAvailable (h5fortran jsonfortran )
34
40
35
41
file (MAKE_DIRECTORY ${h5fortran_BINARY_DIR} /include )
36
42
include_directories (${h5fortran_BINARY_DIR} /include )
37
43
44
+ file (MAKE_DIRECTORY ${jsonfortran_BINARY_DIR} /include )
45
+ include_directories (${jsonfortran_BINARY_DIR} )
46
+
38
47
# compiler flags for gfortran
39
48
if (CMAKE_Fortran_COMPILER_ID MATCHES GNU )
40
49
@@ -128,11 +137,11 @@ string(REGEX REPLACE "^ | $" "" LIBS "${LIBS}")
128
137
enable_testing ()
129
138
foreach (execid input1d_layer input3d_layer dense_layer conv2d_layer maxpool2d_layer flatten_layer dense_network dense_network_from_keras conv2d_network io_hdf5 keras_read_model )
130
139
add_executable (test_${execid} test /test_${execid}.f90 )
131
- target_link_libraries (test_${execid} PRIVATE neural h5fortran::h5fortran ${LIBS} )
140
+ target_link_libraries (test_${execid} PRIVATE neural h5fortran::h5fortran jsonfortran ${LIBS} )
132
141
add_test (test_${execid} bin/test_${execid} )
133
142
endforeach ()
134
143
135
144
foreach (execid cnn mnist mnist_from_keras simple sine )
136
145
add_executable (${execid} example/${execid}.f90 )
137
- target_link_libraries (${execid} PRIVATE neural h5fortran::h5fortran ${LIBS} )
146
+ target_link_libraries (${execid} PRIVATE neural h5fortran::h5fortran jsonfortran ${LIBS} )
138
147
endforeach ()
You can’t perform that action at this time.
0 commit comments