-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
23 lines (18 loc) · 902 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
cmake_minimum_required(VERSION 3.23.0)
SET (CVM_VERSION 9.1.0)
project(cvm LANGUAGES CXX VERSION ${CVM_VERSION} DESCRIPTION "CVM Class Library")
enable_language(Fortran)
#cmake -DCMAKE_Fortran_COMPILER=ifx -DCMAKE_CXX_COMPILER=icx -DCMAKE_C_COMPILER=icx -DMKL=ON -DILP64=ON -DBUILD_TESTS=ON
if (${CMAKE_CXX_COMPILER_ID} MATCHES "^Intel.*")
SET(ICC ON)
message(STATUS "Found Intel C++: ${CMAKE_CXX_COMPILER_ID} version ${CMAKE_CXX_COMPILER_VERSION}")
endif()
if (${CMAKE_Fortran_COMPILER_ID} MATCHES "^Intel.*")
SET(IFORT ON)
message(STATUS "Found Intel Fortran: ${CMAKE_Fortran_COMPILER_ID} version ${CMAKE_Fortran_COMPILER_VERSION}")
endif()
option(BUILD_TESTS "Build regression test program (takes a while)" OFF)
option(MAC "Target platform is Mac OS" OFF)
option(MKL "Use Intel MKL library" OFF)
option(ILP64 "Set the default integer size to 8 byte" OFF)
add_subdirectory(cvm)