@@ -46,10 +46,11 @@ cp "@PROJECT_SOURCE_DIR@/EXAMPLES/BAND/dnbdr3.f" .
46
46
cp " @PROJECT_SOURCE_DIR@/PARPACK/EXAMPLES/MPI/pdndrv1.f" .
47
47
cp " @PROJECT_SOURCE_DIR@/PARPACK/EXAMPLES/MPI/pdndrv3.f" .
48
48
cp " @PROJECT_SOURCE_DIR@/TESTS/icb_arpack_c.c" .
49
+ cp " @PROJECT_SOURCE_DIR@/TESTS/icb_arpack_cpp.cpp" .
49
50
50
51
echo " cmake_minimum_required(VERSION 3.0)" > CMakeLists.txt
51
52
echo " " >> CMakeLists.txt
52
- echo " project(tstCMakeInstall Fortran C) " >> CMakeLists.txt
53
+ echo " project(tstCMakeInstall Fortran C CXX) " >> CMakeLists.txt
53
54
echo " " >> CMakeLists.txt
54
55
echo " find_package(BLAS REQUIRED)" >> CMakeLists.txt
55
56
echo " find_package(LAPACK REQUIRED)" >> CMakeLists.txt
@@ -71,6 +72,14 @@ echo "target_include_directories(icb_arpack_c INTERFACE LAPACK::LAPACK)" >> CMak
71
72
echo " target_link_libraries(icb_arpack_c LAPACK::LAPACK)" >> CMakeLists.txt
72
73
echo " target_include_directories(icb_arpack_c INTERFACE ARPACK::ARPACK)" >> CMakeLists.txt
73
74
echo " target_link_libraries(icb_arpack_c ARPACK::ARPACK)" >> CMakeLists.txt
75
+ echo " " >> CMakeLists.txt
76
+ echo " add_executable(icb_arpack_cpp icb_arpack_cpp.cpp)" >> CMakeLists.txt
77
+ echo " target_include_directories(icb_arpack_cpp INTERFACE BLAS::BLAS)" >> CMakeLists.txt
78
+ echo " target_link_libraries(icb_arpack_cpp BLAS::BLAS)" >> CMakeLists.txt
79
+ echo " target_include_directories(icb_arpack_cpp INTERFACE LAPACK::LAPACK)" >> CMakeLists.txt
80
+ echo " target_link_libraries(icb_arpack_cpp LAPACK::LAPACK)" >> CMakeLists.txt
81
+ echo " target_include_directories(icb_arpack_cpp INTERFACE ARPACK::ARPACK)" >> CMakeLists.txt
82
+ echo " target_link_libraries(icb_arpack_cpp ARPACK::ARPACK)" >> CMakeLists.txt
74
83
echo " " >> CMakeLists.txt
75
84
echo " add_executable(pdndrv1 dnband.f pdndrv1.f)" >> CMakeLists.txt
76
85
echo " target_include_directories(pdndrv1 INTERFACE BLAS::BLAS)" >> CMakeLists.txt
@@ -103,6 +112,14 @@ echo "target_include_directories(icb_arpack_c_pkg INTERFACE LAPACK::LAPACK)"
103
112
echo " target_link_libraries(icb_arpack_c_pkg LAPACK::LAPACK)" >> CMakeLists.txt
104
113
echo " target_include_directories(icb_arpack_c_pkg INTERFACE PkgConfig::ARPACK)" >> CMakeLists.txt
105
114
echo " target_link_libraries(icb_arpack_c_pkg PkgConfig::ARPACK)" >> CMakeLists.txt
115
+ echo " " >> CMakeLists.txt
116
+ echo " add_executable(icb_arpack_cpp_pkg icb_arpack_cpp.cpp)" >> CMakeLists.txt
117
+ echo " target_include_directories(icb_arpack_cpp_pkg INTERFACE BLAS::BLAS)" >> CMakeLists.txt
118
+ echo " target_link_libraries(icb_arpack_cpp_pkg BLAS::BLAS)" >> CMakeLists.txt
119
+ echo " target_include_directories(icb_arpack_cpp_pkg INTERFACE LAPACK::LAPACK)" >> CMakeLists.txt
120
+ echo " target_link_libraries(icb_arpack_cpp_pkg LAPACK::LAPACK)" >> CMakeLists.txt
121
+ echo " target_include_directories(icb_arpack_cpp_pkg INTERFACE PkgConfig::ARPACK)" >> CMakeLists.txt
122
+ echo " target_link_libraries(icb_arpack_cpp_pkg PkgConfig::ARPACK)" >> CMakeLists.txt
106
123
echo " " >> CMakeLists.txt
107
124
echo " add_executable(pdndrv3 dnband.f pdndrv3.f)" >> CMakeLists.txt
108
125
echo " target_include_directories(pdndrv3 INTERFACE BLAS::BLAS)" >> CMakeLists.txt
@@ -126,8 +143,10 @@ make all VERBOSE=1 || exit 1
126
143
127
144
./dnbdr1 || exit 1
128
145
./icb_arpack_c || exit 1
146
+ ./icb_arpack_cpp || exit 1
129
147
mpirun -n 2 ./pdndrv1 || exit 1
130
148
131
149
./dnbdr3 || exit 1
132
150
./icb_arpack_c_pkg || exit 1
151
+ ./icb_arpack_cpp_pkg || exit 1
133
152
mpirun -n 2 ./pdndrv3 || exit 1
0 commit comments