Sherman-Morrison/random_generator/CMakeLists.txt

24 lines
732 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.16)
project("TREX - Scherman-Morrison random generator" VERSION "0.1.0")
2022-09-19 15:33:07 +02:00
set(MKL_DIR $ENV{MKLROOT}/lib/cmake/mkl)
set(INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/headers)
set(GLOBAL_BIN_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
set(GLOBAL_LIB_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Handle versioning
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/src/versioning.h.in" "${PROJECT_BINARY_DIR}/versioning.h")
include_directories(${PROJECT_BINARY_DIR})
find_package(HDF5 REQUIRED)
2022-09-19 15:33:07 +02:00
find_package(MKL REQUIRED)
message(STATUS "Imported Intel oneMKL targets: ${MKL_IMPORTED_TARGETS}")
find_package(OpenMP REQUIRED)
2022-09-19 15:33:07 +02:00
add_subdirectory(src)