1 cmake_minimum_required(VERSION 2.6)
2 project(LAPACK Fortran)
3 set(SECOND_SRC ${LAPACK_SOURCE_DIR}/INSTALL/second_INT_ETIME.f)
4 set(DSECOND_SRC ${LAPACK_SOURCE_DIR}/INSTALL/dsecnd_INT_ETIME.f)
8 set(CMAKE_MODULE_PATH ${LAPACK_SOURCE_DIR} ${CMAKE_MODULE_PATH})
9 include(CheckTimeFunction)
10 CHECK_TIME_FUNCTION(NONE TIME_FUNC)
11 CHECK_TIME_FUNCTION(INT_CPU_TIME TIME_FUNC)
12 CHECK_TIME_FUNCTION(EXT_ETIME TIME_FUNC)
13 CHECK_TIME_FUNCTION(EXT_ETIME_ TIME_FUNC)
14 CHECK_TIME_FUNCTION(INT_ETIME TIME_FUNC)
15 message(STATUS "--> Will use second_${TIME_FUNC}.f and dsecnd_${TIME_FUNC}.f as timing function.")
17 set(SECOND_SRC ${LAPACK_SOURCE_DIR}/INSTALL/second_${TIME_FUNC}.f)
18 set(DSECOND_SRC ${LAPACK_SOURCE_DIR}/INSTALL/dsecnd_${TIME_FUNC}.f)
21 add_subdirectory(BLAS)
23 add_subdirectory(TESTING)
25 set(LAPACK_VERSION 3.2.1)
26 set(CPACK_PACKAGE_VERSION_MAJOR 3)
27 set(CPACK_PACKAGE_VERSION_MINOR 2)
28 set(CPACK_PACKAGE_VERSION_PATCH 1)
30 export(TARGETS blas FILE lapack-targets.cmake)
31 configure_file(${LAPACK_SOURCE_DIR}/lapack-config-version.cmake.in
32 ${LAPACK_BINARY_DIR}/lapack-config-version.cmake @ONLY)
33 configure_file(${LAPACK_SOURCE_DIR}/lapack-config.cmake.in
34 ${LAPACK_BINARY_DIR}/lapack-config.cmake @ONLY)