File tree Expand file tree Collapse file tree 15 files changed +76
-0
lines changed Expand file tree Collapse file tree 15 files changed +76
-0
lines changed Original file line number Diff line number Diff line change @@ -187,4 +187,28 @@ if errorlevel 1 exit 1
187
187
.\build\gfortran_debug\app\gomp_test
188
188
if errorlevel 1 exit 1
189
189
190
+
191
+ cd ..\fortran_includes
192
+ if errorlevel 1 exit 1
193
+
194
+ del /q /f build
195
+ %fpm_path% build
196
+ if errorlevel 1 exit 1
197
+
198
+
199
+ cd ..\c_includes
200
+ if errorlevel 1 exit 1
201
+
202
+ del /q /f build
203
+ %fpm_path% build
204
+ if errorlevel 1 exit 1
205
+
206
+
207
+ cd ..\c_header_only
208
+ if errorlevel 1 exit 1
209
+
210
+ del /q /f build
211
+ %fpm_path% build
212
+ if errorlevel 1 exit 1
213
+
190
214
cd ..\..
Original file line number Diff line number Diff line change @@ -89,5 +89,14 @@ cd ../link_executable
89
89
" ${f_fpm_path} " build
90
90
./build/gfortran_debug/app/gomp_test
91
91
92
+ cd ../fortran_includes
93
+ " ${f_fpm_path} " build
94
+
95
+ cd ../c_includes
96
+ " ${f_fpm_path} " build
97
+
98
+ cd ../c_header_only
99
+ " ${f_fpm_path} " build
100
+
92
101
# Cleanup
93
102
rm -rf ./* /build
Original file line number Diff line number Diff line change @@ -7,8 +7,11 @@ the features demonstrated in each package and which versions of fpm are supporte
7
7
| Name | Features | Bootstrap (Haskell) fpm | fpm |
8
8
| ---------------------| ---------------------------------------------------------------| :-----------------------:| :---:|
9
9
| auto_discovery_off | Default layout with auto-discovery disabled | N | Y |
10
+ | c_header_only | C header-only library | N | Y |
11
+ | c_includes | C library with c include directory and dependency includes | N | Y |
10
12
| circular_example | Local path dependency; circular dependency | Y | Y |
11
13
| circular_test | Local path dependency; circular dependency | Y | Y |
14
+ | fortran_includes | Fortran library with explicit include directory | Y | N |
12
15
| hello_complex | Non-standard directory layout; multiple tests and executables | Y | Y |
13
16
| hello_complex_2 | Auto-discovery of tests and executables with modules | N | Y |
14
17
| hello_fpm | App-only; local path dependency | Y | Y |
Original file line number Diff line number Diff line change
1
+ build /*
Original file line number Diff line number Diff line change
1
+ name = " c_header_only"
Original file line number Diff line number Diff line change
1
+ int printf ( const char * format , ... );
Original file line number Diff line number Diff line change
1
+ build /*
Original file line number Diff line number Diff line change
1
+ name = " c_includes"
2
+
3
+ [dependencies ]
4
+ c_header_only = { path = " ../c_header_only" }
Original file line number Diff line number Diff line change
1
+ // Include from "c_header_only" dependency
2
+ #include "c_header.h"
3
+
4
+ int test (const int a );
Original file line number Diff line number Diff line change
1
+ #include "lib.h"
2
+
3
+ int test (const int a ){
4
+
5
+ return printf ("input: %d\n" , a );
6
+
7
+ }
You can’t perform that action at this time.
0 commit comments