cmake_minimum_required(VERSION 3.13) enable_testing() project(oneMKL_Example) enable_language (Fortran) # ifort # (CMAKE_Fortran_FLAGS_RELEASE "/nologo /O2 /heap-arrays50 /libs:static /threads") # (CMAKE_Fortran_FLAGS_DEBUG "/nologo /debug:full /Od /heap-arrays50 /libs:static /threads /dbglibs") option(ENABLE_BLAS95 "Enables BLAS Fortran95 API" ON) option(ENABLE_LAPACK95 "Enables LAPACK Fortran95 API" ON) option(ENABLE_BLACS "Enables cluster BLAS library" OFF) option(ENABLE_CDFT "Enables cluster DFT library" OFF) option(ENABLE_CPARDISO "Enables cluster PARDISO functionality" OFF) option(ENABLE_SCALAPACK "Enables cluster LAPACK library" OFF) option(ENABLE_OMP_OFFLOAD "Enables OpenMP Offload functionality" OFF) set (SOURCE C:/Program Files (x86)/Intel/oneAPI/mkl/latest/examples/examples_f95/f95/lapack/source) set (SOURCE ../source/) set (SOURCE ../) find_package(MKL CONFIG REQUIRED) message(STATUS "${MKL_IMPORTED_TARGETS}") #Provides available list of targets based on input add_executable(myapp ggsvd.f90) #dgemm_example.c target_compile_options(myapp PUBLIC $) target_include_directories(myapp PUBLIC $) target_link_libraries(myapp PUBLIC $) add_test(NAME mytest COMMAND myapp) if(MKL_ENV) set_tests_properties(mytest PROPERTIES ENVIRONMENT "${MKL_ENV}") endif()