diff options
author | julie <julielangou@users.noreply.github.com> | 2009-08-11 21:58:21 +0000 |
---|---|---|
committer | julie <julielangou@users.noreply.github.com> | 2009-08-11 21:58:21 +0000 |
commit | 17112c1f29d9f7a7ff72de549c70845f40a37145 (patch) | |
tree | b96e520fccdb87b13abb706a97561d11a3570b94 /CMakeLists.txt | |
parent | 8a4a5ccc1ecec7966779696e79d492a604521870 (diff) | |
download | lapack-17112c1f29d9f7a7ff72de549c70845f40a37145.tar.gz lapack-17112c1f29d9f7a7ff72de549c70845f40a37145.tar.bz2 lapack-17112c1f29d9f7a7ff72de549c70845f40a37145.zip |
Add CMAKE support to LAPACK
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 00000000..c4af0d60 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,33 @@ +cmake_minimum_required(VERSION 2.6) +project(LAPACK Fortran) +set(SECOND_SRC ${LAPACK_SOURCE_DIR}/INSTALL/second_INT_ETIME.f) +set(DSECOND_SRC ${LAPACK_SOURCE_DIR}/INSTALL/dsecnd_INT_ETIME.f) +enable_testing() +include(CTest) +enable_testing() +set(CMAKE_MODULE_PATH ${LAPACK_SOURCE_DIR} ${CMAKE_MODULE_PATH}) +include(CheckTimeFunction) +CHECK_TIME_FUNCTION(INT_CPU_TIME TIME_FUNC) +CHECK_TIME_FUNCTION(EXT_ETIME TIME_FUNC) +CHECK_TIME_FUNCTION(EXT_ETIME_ TIME_FUNC) +CHECK_TIME_FUNCTION(INT_ETIME TIME_FUNC) +message(STATUS "--> Will use second_${TIME_FUNC}.f and dsecnd_${TIME_FUNC}.f as timing function.") + +set(SECOND_SRC ${LAPACK_SOURCE_DIR}/INSTALL/second_${TIME_FUNC}.f) +set(DSECOND_SRC ${LAPACK_SOURCE_DIR}/INSTALL/dsecnd_${TIME_FUNC}.f) + + +add_subdirectory(BLAS) +add_subdirectory(SRC) +add_subdirectory(TESTING) + +set(LAPACK_VERSION 3.2.1) +set(CPACK_PACKAGE_VERSION_MAJOR 3) +set(CPACK_PACKAGE_VERSION_MINOR 2) +set(CPACK_PACKAGE_VERSION_PATCH 1) +include(CPack) +export(TARGETS blas FILE lapack-targets.cmake) +configure_file(${LAPACK_SOURCE_DIR}/lapack-config-version.cmake.in + ${LAPACK_BINARY_DIR}/lapack-config-version.cmake @ONLY) +configure_file(${LAPACK_SOURCE_DIR}/lapack-config.cmake.in + ${LAPACK_BINARY_DIR}/lapack-config.cmake @ONLY) |