You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 17 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  1. cmake_minimum_required(VERSION 2.8.12)
  2. project(LAPACK Fortran C)
  3. set(LAPACK_MAJOR_VERSION 3)
  4. set(LAPACK_MINOR_VERSION 9)
  5. set(LAPACK_PATCH_VERSION 0)
  6. set(
  7. LAPACK_VERSION
  8. ${LAPACK_MAJOR_VERSION}.${LAPACK_MINOR_VERSION}.${LAPACK_PATCH_VERSION}
  9. )
  10. # Add the CMake directory for custon CMake modules
  11. set(CMAKE_MODULE_PATH "${LAPACK_SOURCE_DIR}/CMAKE" ${CMAKE_MODULE_PATH})
  12. # Export all symbols on Windows when building shared libraries
  13. SET(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
  14. # Set a default build type if none was specified
  15. if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
  16. message(STATUS "Setting build type to 'Release' as none was specified.")
  17. set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
  18. # Set the possible values of build type for cmake-gui
  19. set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo" "Coverage")
  20. endif()
  21. # Coverage
  22. set(_is_coverage_build 0)
  23. set(_msg "Checking if build type is 'Coverage'")
  24. message(STATUS "${_msg}")
  25. if(NOT CMAKE_CONFIGURATION_TYPES)
  26. string(TOLOWER ${CMAKE_BUILD_TYPE} _build_type_lc)
  27. if(${_build_type_lc} STREQUAL "coverage")
  28. set(_is_coverage_build 1)
  29. endif()
  30. endif()
  31. message(STATUS "${_msg}: ${_is_coverage_build}")
  32. if(_is_coverage_build)
  33. message(STATUS "Adding coverage")
  34. find_package(codecov)
  35. endif()
  36. # By default static library
  37. option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
  38. include(GNUInstallDirs)
  39. # Updated OSX RPATH settings
  40. # In response to CMake 3.0 generating warnings regarding policy CMP0042,
  41. # the OSX RPATH settings have been updated per recommendations found
  42. # in the CMake Wiki:
  43. # http://www.cmake.org/Wiki/CMake_RPATH_handling#Mac_OS_X_and_the_RPATH
  44. set(CMAKE_MACOSX_RPATH ON)
  45. set(CMAKE_SKIP_BUILD_RPATH FALSE)
  46. set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
  47. list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES ${CMAKE_INSTALL_FULL_LIBDIR} isSystemDir)
  48. if("${isSystemDir}" STREQUAL "-1")
  49. set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR})
  50. set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
  51. endif()
  52. # Configure the warning and code coverage suppression file
  53. configure_file(
  54. "${LAPACK_SOURCE_DIR}/CTestCustom.cmake.in"
  55. "${LAPACK_BINARY_DIR}/CTestCustom.cmake"
  56. @ONLY
  57. )
  58. include(PreventInSourceBuilds)
  59. include(PreventInBuildInstalls)
  60. if(UNIX)
  61. if(CMAKE_Fortran_COMPILER_ID STREQUAL Intel)
  62. list(APPEND CMAKE_Fortran_FLAGS "-fp-model strict")
  63. endif()
  64. if(CMAKE_Fortran_COMPILER_ID STREQUAL XL)
  65. list(APPEND CMAKE_Fortran_FLAGS "-qnosave -qstrict=none")
  66. endif()
  67. # Delete libmtsk in linking sequence for Sun/Oracle Fortran Compiler.
  68. # This library is not present in the Sun package SolarisStudio12.3-linux-x86-bin
  69. string(REPLACE \;mtsk\; \; CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES "${CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES}")
  70. endif()
  71. if(CMAKE_Fortran_COMPILER_ID STREQUAL Compaq)
  72. if(WIN32)
  73. if(CMAKE_GENERATOR STREQUAL "NMake Makefiles")
  74. get_filename_component(CMAKE_Fortran_COMPILER_CMDNAM ${CMAKE_Fortran_COMPILER} NAME_WE)
  75. message(STATUS "Using Compaq Fortran compiler with command name ${CMAKE_Fortran_COMPILER_CMDNAM}")
  76. set(cmd ${CMAKE_Fortran_COMPILER_CMDNAM})
  77. string(TOLOWER "${cmd}" cmdlc)
  78. if(cmdlc STREQUAL "df")
  79. message(STATUS "Assume the Compaq Visual Fortran Compiler is being used")
  80. set(CMAKE_Fortran_USE_RESPONSE_FILE_FOR_OBJECTS 1)
  81. set(CMAKE_Fortran_USE_RESPONSE_FILE_FOR_INCLUDES 1)
  82. #This is a workaround that is needed to avoid forward-slashes in the
  83. #filenames listed in response files from incorrectly being interpreted as
  84. #introducing compiler command options
  85. if(${BUILD_SHARED_LIBS})
  86. message(FATAL_ERROR "Making of shared libraries with CVF has not been tested.")
  87. endif()
  88. set(str "NMake version 9 or later should be used. NMake version 6.0 which is\n")
  89. set(str "${str} included with the CVF distribution fails to build Lapack because\n")
  90. set(str "${str} the number of source files exceeds the limit for NMake v6.0\n")
  91. message(STATUS ${str})
  92. set(CMAKE_Fortran_LINK_EXECUTABLE "LINK /out:<TARGET> <LINK_FLAGS> <LINK_LIBRARIES> <OBJECTS>")
  93. endif()
  94. endif()
  95. endif()
  96. endif()
  97. # --------------------------------------------------
  98. set(LAPACK_INSTALL_EXPORT_NAME lapack-targets)
  99. macro(lapack_install_library lib)
  100. install(TARGETS ${lib}
  101. EXPORT ${LAPACK_INSTALL_EXPORT_NAME}
  102. ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development
  103. LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT RuntimeLibraries
  104. RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT RuntimeLibraries
  105. )
  106. endmacro()
  107. set(PKG_CONFIG_DIR ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
  108. # --------------------------------------------------
  109. # Testing
  110. option(BUILD_TESTING "Build tests" ${_is_coverage_build})
  111. include(CTest)
  112. message(STATUS "Build tests: ${BUILD_TESTING}")
  113. # lapack_testing.py uses features from python 2.7 and greater
  114. if(BUILD_TESTING)
  115. set(_msg "Looking for Python >= 2.7 needed for summary tests")
  116. message(STATUS "${_msg}")
  117. find_package(PythonInterp 2.7 QUIET)
  118. if(PYTHONINTERP_FOUND)
  119. message(STATUS "${_msg} - found (${PYTHON_VERSION_STRING})")
  120. else()
  121. message(STATUS "${_msg} - not found (skipping summary tests)")
  122. endif()
  123. endif()
  124. # --------------------------------------------------
  125. # Organize output files. On Windows this also keeps .dll files next
  126. # to the .exe files that need them, making tests easy to run.
  127. set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LAPACK_BINARY_DIR}/bin)
  128. set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${LAPACK_BINARY_DIR}/lib)
  129. set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${LAPACK_BINARY_DIR}/lib)
  130. # --------------------------------------------------
  131. # Check for any necessary platform specific compiler flags
  132. include(CheckLAPACKCompilerFlags)
  133. CheckLAPACKCompilerFlags()
  134. # --------------------------------------------------
  135. # Check second function
  136. include(CheckTimeFunction)
  137. set(TIME_FUNC NONE ${TIME_FUNC})
  138. CHECK_TIME_FUNCTION(NONE TIME_FUNC)
  139. CHECK_TIME_FUNCTION(INT_CPU_TIME TIME_FUNC)
  140. CHECK_TIME_FUNCTION(EXT_ETIME TIME_FUNC)
  141. CHECK_TIME_FUNCTION(EXT_ETIME_ TIME_FUNC)
  142. CHECK_TIME_FUNCTION(INT_ETIME TIME_FUNC)
  143. message(STATUS "--> Will use second_${TIME_FUNC}.f and dsecnd_${TIME_FUNC}.f as timing function.")
  144. set(SECOND_SRC ${LAPACK_SOURCE_DIR}/INSTALL/second_${TIME_FUNC}.f)
  145. set(DSECOND_SRC ${LAPACK_SOURCE_DIR}/INSTALL/dsecnd_${TIME_FUNC}.f)
  146. # deprecated LAPACK and LAPACKE routines
  147. option(BUILD_DEPRECATED "Build deprecated routines" OFF)
  148. message(STATUS "Build deprecated routines: ${BUILD_DEPRECATED}")
  149. # --------------------------------------------------
  150. # Precision to build
  151. # By default all precisions are generated
  152. option(BUILD_SINGLE "Build single precision real" ON)
  153. option(BUILD_DOUBLE "Build double precision real" ON)
  154. option(BUILD_COMPLEX "Build single precision complex" ON)
  155. option(BUILD_COMPLEX16 "Build double precision complex" ON)
  156. message(STATUS "Build single precision real: ${BUILD_SINGLE}")
  157. message(STATUS "Build double precision real: ${BUILD_DOUBLE}")
  158. message(STATUS "Build single precision complex: ${BUILD_COMPLEX}")
  159. message(STATUS "Build double precision complex: ${BUILD_COMPLEX16}")
  160. if(NOT (BUILD_SINGLE OR BUILD_DOUBLE OR BUILD_COMPLEX OR BUILD_COMPLEX16))
  161. message(FATAL_ERROR "Nothing to build, no precision selected.
  162. Please enable at least one of these:
  163. BUILD_SINGLE, BUILD_DOUBLE, BUILD_COMPLEX, BUILD_COMPLEX16.")
  164. endif()
  165. # --------------------------------------------------
  166. # Subdirectories that need to be processed
  167. option(USE_OPTIMIZED_BLAS "Whether or not to use an optimized BLAS library instead of included netlib BLAS" OFF)
  168. # Check the usage of the user provided BLAS libraries
  169. if(BLAS_LIBRARIES)
  170. include(CheckFortranFunctionExists)
  171. set(CMAKE_REQUIRED_LIBRARIES ${BLAS_LIBRARIES})
  172. CHECK_FORTRAN_FUNCTION_EXISTS("dgemm" BLAS_FOUND)
  173. unset(CMAKE_REQUIRED_LIBRARIES)
  174. if(BLAS_FOUND)
  175. message(STATUS "--> BLAS supplied by user is WORKING, will use ${BLAS_LIBRARIES}.")
  176. else()
  177. message(ERROR "--> BLAS supplied by user is not WORKING, CANNOT USE ${BLAS_LIBRARIES}.")
  178. message(ERROR "--> Will use REFERENCE BLAS (by default)")
  179. message(ERROR "--> Or Correct your BLAS_LIBRARIES entry ")
  180. message(ERROR "--> Or Consider checking USE_OPTIMIZED_BLAS")
  181. endif()
  182. # User did not provide a BLAS Library but specified to search for one
  183. elseif(USE_OPTIMIZED_BLAS)
  184. find_package(BLAS)
  185. endif()
  186. # Neither user specified or optimized BLAS libraries can be used
  187. if(NOT BLAS_FOUND)
  188. message(STATUS "Using supplied NETLIB BLAS implementation")
  189. add_subdirectory(BLAS)
  190. set(BLAS_LIBRARIES blas)
  191. else()
  192. set(CMAKE_EXE_LINKER_FLAGS
  193. "${CMAKE_EXE_LINKER_FLAGS} ${BLAS_LINKER_FLAGS}"
  194. CACHE STRING "Linker flags for executables" FORCE)
  195. set(CMAKE_MODULE_LINKER_FLAGS
  196. "${CMAKE_MODULE_LINKER_FLAGS} ${BLAS_LINKER_FLAGS}"
  197. CACHE STRING "Linker flags for modules" FORCE)
  198. set(CMAKE_SHARED_LINKER_FLAGS
  199. "${CMAKE_SHARED_LINKER_FLAGS} ${BLAS_LINKER_FLAGS}"
  200. CACHE STRING "Linker flags for shared libs" FORCE)
  201. endif()
  202. # --------------------------------------------------
  203. # CBLAS
  204. option(CBLAS "Build CBLAS" OFF)
  205. if(CBLAS)
  206. add_subdirectory(CBLAS)
  207. endif()
  208. # --------------------------------------------------
  209. # XBLAS
  210. option(USE_XBLAS "Build extended precision (needs XBLAS)" OFF)
  211. if(USE_XBLAS)
  212. find_library(XBLAS_LIBRARY NAMES xblas)
  213. endif()
  214. option(USE_OPTIMIZED_LAPACK "Whether or not to use an optimized LAPACK library instead of included netlib LAPACK" OFF)
  215. # --------------------------------------------------
  216. # LAPACK
  217. # User did not provide a LAPACK Library but specified to search for one
  218. if(USE_OPTIMIZED_LAPACK)
  219. find_package(LAPACK)
  220. endif()
  221. # Check the usage of the user provided or automatically found LAPACK libraries
  222. if(LAPACK_LIBRARIES)
  223. include(CheckFortranFunctionExists)
  224. set(CMAKE_REQUIRED_LIBRARIES ${LAPACK_LIBRARIES})
  225. # Check if new routine of 3.4.0 is in LAPACK_LIBRARIES
  226. CHECK_FORTRAN_FUNCTION_EXISTS("dgeqrt" LATESTLAPACK_FOUND)
  227. unset(CMAKE_REQUIRED_LIBRARIES)
  228. if(LATESTLAPACK_FOUND)
  229. message(STATUS "--> LAPACK supplied by user is WORKING, will use ${LAPACK_LIBRARIES}.")
  230. else()
  231. message(ERROR "--> LAPACK supplied by user is not WORKING or is older than LAPACK 3.4.0, CANNOT USE ${LAPACK_LIBRARIES}.")
  232. message(ERROR "--> Will use REFERENCE LAPACK (by default)")
  233. message(ERROR "--> Or Correct your LAPACK_LIBRARIES entry ")
  234. message(ERROR "--> Or Consider checking USE_OPTIMIZED_LAPACK")
  235. endif()
  236. endif()
  237. # Neither user specified or optimized LAPACK libraries can be used
  238. if(NOT LATESTLAPACK_FOUND)
  239. message(STATUS "Using supplied NETLIB LAPACK implementation")
  240. set(LAPACK_LIBRARIES lapack)
  241. add_subdirectory(SRC)
  242. else()
  243. set(CMAKE_EXE_LINKER_FLAGS
  244. "${CMAKE_EXE_LINKER_FLAGS} ${LAPACK_LINKER_FLAGS}"
  245. CACHE STRING "Linker flags for executables" FORCE)
  246. set(CMAKE_MODULE_LINKER_FLAGS
  247. "${CMAKE_MODULE_LINKER_FLAGS} ${LAPACK_LINKER_FLAGS}"
  248. CACHE STRING "Linker flags for modules" FORCE)
  249. set(CMAKE_SHARED_LINKER_FLAGS
  250. "${CMAKE_SHARED_LINKER_FLAGS} ${LAPACK_LINKER_FLAGS}"
  251. CACHE STRING "Linker flags for shared libs" FORCE)
  252. endif()
  253. if(BUILD_TESTING)
  254. add_subdirectory(TESTING)
  255. endif()
  256. # --------------------------------------------------
  257. # LAPACKE
  258. option(LAPACKE "Build LAPACKE" OFF)
  259. # LAPACKE has also the interface to some routines from tmglib,
  260. # if LAPACKE_WITH_TMG is selected, we need to add those routines to LAPACKE
  261. option(LAPACKE_WITH_TMG "Build LAPACKE with tmglib routines" OFF)
  262. if(LAPACKE_WITH_TMG)
  263. set(LAPACKE ON)
  264. endif()
  265. if(BUILD_TESTING OR LAPACKE_WITH_TMG) #already included, avoid double inclusion
  266. add_subdirectory(TESTING/MATGEN)
  267. endif()
  268. if(LAPACKE)
  269. add_subdirectory(LAPACKE)
  270. endif()
  271. #-------------------------------------
  272. # BLAS++ / LAPACK++
  273. option(BLAS++ "Build BLAS++" OFF)
  274. option(LAPACK++ "Build LAPACK++" OFF)
  275. function(_display_cpp_implementation_msg name)
  276. string(TOLOWER ${name} name_lc)
  277. message(STATUS "${name}++ enable")
  278. message(STATUS "----------------")
  279. message(STATUS "Thank you for your interest in ${name}++, a newly developed C++ API for ${name} library")
  280. message(STATUS "The objective of ${name}++ is to provide a convenient, performance oriented API for development in the C++ language, that, for the most part, preserves established conventions, while, at the same time, takes advantages of modern C++ features, such as: namespaces, templates, exceptions, etc.")
  281. message(STATUS "We are still working on integrating ${name}++ in our library. For the moment, you can download directly ${name_lc}++ from https://bitbucket.org/icl/${name_lc}pp")
  282. message(STATUS "For support ${name}++ related question, please email: slate-user@icl.utk.edu")
  283. message(STATUS "----------------")
  284. endfunction()
  285. if(BLAS++)
  286. _display_cpp_implementation_msg("BLAS")
  287. endif()
  288. if(LAPACK++)
  289. _display_cpp_implementation_msg("LAPACK")
  290. endif()
  291. # --------------------------------------------------
  292. # CPACK Packaging
  293. set(CPACK_PACKAGE_NAME "LAPACK")
  294. set(CPACK_PACKAGE_VENDOR "University of Tennessee, Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd")
  295. set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "LAPACK- Linear Algebra Package")
  296. set(CPACK_PACKAGE_VERSION_MAJOR ${LAPACK_MAJOR_VERSION})
  297. set(CPACK_PACKAGE_VERSION_MINOR ${LAPACK_MINOR_VERSION})
  298. set(CPACK_PACKAGE_VERSION_PATCH ${LAPACK_PATCH_VERSION})
  299. set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
  300. set(CPACK_MONOLITHIC_INSTALL ON)
  301. set(CPACK_PACKAGE_INSTALL_DIRECTORY "LAPACK")
  302. if(WIN32 AND NOT UNIX)
  303. # There is a bug in NSI that does not handle full unix paths properly. Make
  304. # sure there is at least one set of four (4) backlasshes.
  305. set(CPACK_NSIS_HELP_LINK "http:\\\\\\\\http://icl.cs.utk.edu/lapack-forum")
  306. set(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\www.netlib.org/lapack")
  307. set(CPACK_NSIS_CONTACT "lapack@eecs.utk.edu")
  308. set(CPACK_NSIS_MODIFY_PATH ON)
  309. set(CPACK_NSIS_DISPLAY_NAME "LAPACK-${LAPACK_VERSION}")
  310. set(CPACK_PACKAGE_RELOCATABLE "true")
  311. else()
  312. set(CPACK_GENERATOR "TGZ")
  313. set(CPACK_SOURCE_GENERATOR TGZ)
  314. set(CPACK_SOURCE_PACKAGE_FILE_NAME "lapack-${LAPACK_VERSION}")
  315. set(CPACK_SOURCE_IGNORE_FILES ~$ .svn ${CPACK_SOURCE_IGNORE_FILES})
  316. endif()
  317. include(CPack)
  318. # --------------------------------------------------
  319. if(NOT BLAS_FOUND)
  320. set(ALL_TARGETS ${ALL_TARGETS} blas)
  321. endif()
  322. if(NOT LATESTLAPACK_FOUND)
  323. set(ALL_TARGETS ${ALL_TARGETS} lapack)
  324. endif()
  325. if(BUILD_TESTING OR LAPACKE_WITH_TMG)
  326. set(ALL_TARGETS ${ALL_TARGETS} tmglib)
  327. endif()
  328. # Export lapack targets, not including lapacke, from the
  329. # install tree, if any.
  330. set(_lapack_config_install_guard_target "")
  331. if(ALL_TARGETS)
  332. install(EXPORT lapack-targets
  333. DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/lapack-${LAPACK_VERSION}
  334. COMPONENT Development
  335. )
  336. # Choose one of the lapack targets to use as a guard for
  337. # lapack-config.cmake to load targets from the install tree.
  338. list(GET ALL_TARGETS 0 _lapack_config_install_guard_target)
  339. endif()
  340. # Include cblas in targets exported from the build tree.
  341. if(CBLAS)
  342. set(ALL_TARGETS ${ALL_TARGETS} cblas)
  343. endif()
  344. # Include lapacke in targets exported from the build tree.
  345. if(LAPACKE)
  346. set(ALL_TARGETS ${ALL_TARGETS} lapacke)
  347. endif()
  348. # Export lapack and lapacke targets from the build tree, if any.
  349. set(_lapack_config_build_guard_target "")
  350. if(ALL_TARGETS)
  351. export(TARGETS ${ALL_TARGETS} FILE lapack-targets.cmake)
  352. # Choose one of the lapack or lapacke targets to use as a guard
  353. # for lapack-config.cmake to load targets from the build tree.
  354. list(GET ALL_TARGETS 0 _lapack_config_build_guard_target)
  355. endif()
  356. configure_file(${LAPACK_SOURCE_DIR}/CMAKE/lapack-config-build.cmake.in
  357. ${LAPACK_BINARY_DIR}/lapack-config.cmake @ONLY)
  358. configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapack.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc @ONLY)
  359. install(FILES
  360. ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc
  361. DESTINATION ${PKG_CONFIG_DIR}
  362. COMPONENT Development
  363. )
  364. configure_file(${LAPACK_SOURCE_DIR}/CMAKE/lapack-config-install.cmake.in
  365. ${LAPACK_BINARY_DIR}/CMakeFiles/lapack-config.cmake @ONLY)
  366. include(CMakePackageConfigHelpers)
  367. write_basic_package_version_file(
  368. ${LAPACK_BINARY_DIR}/lapack-config-version.cmake
  369. VERSION ${LAPACK_VERSION}
  370. COMPATIBILITY SameMajorVersion
  371. )
  372. install(FILES
  373. ${LAPACK_BINARY_DIR}/CMakeFiles/lapack-config.cmake
  374. ${LAPACK_BINARY_DIR}/lapack-config-version.cmake
  375. DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/lapack-${LAPACK_VERSION}
  376. COMPONENT Development
  377. )