@@ -41,6 +41,40 @@ if(_is_coverage_build)
4141 find_package (codecov)
4242endif ()
4343
44+ # By default test Fortran compiler complex abs and complex division
45+ option (TEST_FORTRAN_COMPILER "Test Fortran compiler complex abs and complex division" ON )
46+ if ( TEST_FORTRAN_COMPILER )
47+
48+ add_executable ( test_zcomplexabs ${LAPACK_SOURCE_DIR} /INSTALL /test_zcomplexabs.f )
49+ add_custom_target ( run_test_zcomplexabs
50+ COMMAND test_zcomplexabs 2> test_zcomplexabs.err
51+ WORKING_DIRECTORY ${LAPACK_BINARY_DIR} /INSTALL
52+ COMMENT "Running test_zcomplexabs in ${LAPACK_BINARY_DIR} /INSTALL with stderr: test_zcomplexabs.err"
53+ SOURCES ${LAPACK_SOURCE_DIR} /INSTALL /test_zcomplexabs.f )
54+
55+ add_executable ( test_zcomplexdiv ${LAPACK_SOURCE_DIR} /INSTALL /test_zcomplexdiv.f )
56+ add_custom_target ( run_test_zcomplexdiv
57+ COMMAND test_zcomplexdiv 2> test_zcomplexdiv.err
58+ WORKING_DIRECTORY ${LAPACK_BINARY_DIR} /INSTALL
59+ COMMENT "Running test_zcomplexdiv in ${LAPACK_BINARY_DIR} /INSTALL with stderr: test_zcomplexdiv.err"
60+ SOURCES ${LAPACK_SOURCE_DIR} /INSTALL /test_zcomplexdiv.f )
61+
62+ add_executable ( test_zcomplexmult ${LAPACK_SOURCE_DIR} /INSTALL /test_zcomplexmult.f )
63+ add_custom_target ( run_test_zcomplexmult
64+ COMMAND test_zcomplexmult 2> test_zcomplexmult.err
65+ WORKING_DIRECTORY ${LAPACK_BINARY_DIR} /INSTALL
66+ COMMENT "Running test_zcomplexmult in ${LAPACK_BINARY_DIR} /INSTALL with stderr: test_zcomplexmult.err"
67+ SOURCES ${LAPACK_SOURCE_DIR} /INSTALL /test_zcomplexmult.f )
68+
69+ add_executable ( test_zminMax ${LAPACK_SOURCE_DIR} /INSTALL /test_zminMax.f )
70+ add_custom_target ( run_test_zminMax
71+ COMMAND test_zminMax 2> test_zminMax.err
72+ WORKING_DIRECTORY ${LAPACK_BINARY_DIR} /INSTALL
73+ COMMENT "Running test_zminMax in ${LAPACK_BINARY_DIR} /INSTALL with stderr: test_zminMax.err"
74+ SOURCES ${LAPACK_SOURCE_DIR} /INSTALL /test_zminMax.f )
75+
76+ endif ()
77+
4478# By default static library
4579option (BUILD_SHARED_LIBS "Build shared libraries" OFF )
4680
0 commit comments