if(LAPACK_FOUND) add_executable(example example.F90) target_link_libraries(example ${MATH_LIBS}) else() message(FATAL_ERROR "LAPACK library not found for the test fc_lapack!") endif()