@@ -5,16 +5,24 @@ add_subdirectory(cxx)
55add_subdirectory (fortran)
66
77# -- Fortran calling C++
8- add_executable (fortran_call_cxx fortran/math_main.f90)
9- target_link_libraries (fortran_call_cxx PRIVATE math_cxx)
8+ add_executable (fortran_cxx_math fortran/math_main.f90)
9+ target_link_libraries (fortran_cxx_math PRIVATE math_cxx)
1010# LINKER_LANGUAGE option is necessary for ifort at least
11- set_target_properties (fortran_call_cxx PROPERTIES LINKER_LANGUAGE Fortran)
12- add_test (NAME Fortran_call_C++ COMMAND fortran_call_cxx)
11+ set_target_properties (fortran_cxx_math PROPERTIES LINKER_LANGUAGE Fortran)
12+ add_test (NAME Fortran_C++_math COMMAND fortran_cxx_math)
13+
14+ add_executable (fortran_cxx_struct fortran/struct_main.f90)
15+ target_link_libraries (fortran_cxx_struct PRIVATE struct_cxx)
16+ add_test (NAME Fortran_C++_struct COMMAND fortran_cxx_struct)
1317
1418# -- Fortran calling C
15- add_executable (fortran_call_c fortran/math_main.f90)
16- target_link_libraries (fortran_call_c PRIVATE math_c)
17- add_test (NAME Fortran_call_C COMMAND fortran_call_c)
19+ add_executable (fortran_c_math fortran/math_main.f90)
20+ target_link_libraries (fortran_c_math PRIVATE math_c)
21+ add_test (NAME Fortran_C_math COMMAND fortran_c_math)
22+
23+ add_executable (fortran_c_struct fortran/struct_main.f90)
24+ target_link_libraries (fortran_c_struct PRIVATE struct_c)
25+ add_test (NAME Fortran_C_struct COMMAND fortran_c_struct)
1826
1927# -- C calling Fortran
2028add_executable (c_fortran_error c/error_main.c)
@@ -49,6 +57,6 @@ set_target_properties(cxx_fortran_struct PROPERTIES LINKER_LANGUAGE CXX)
4957add_test (NAME C++_Fortran_struct COMMAND $<TARGET_FILE:cxx_fortran_struct>)
5058
5159# -- test wrapup
52- set_tests_properties (C++_Fortran_math C++_Fortran_error Fortran_call_C Fortran_call_C++ PROPERTIES
60+ set_tests_properties (C++_Fortran_math C++_Fortran_error Fortran_C_math Fortran_C++_math PROPERTIES
5361TIMEOUT 5
5462)
0 commit comments