Skip to content
Snippets Groups Projects
CMakeLists.txt 855 B
Newer Older
cmake_minimum_required(VERSION 3.9..3.17 FATAL_ERROR)

if(${CMAKE_VERSION} VERSION_LESS 3.12)
    cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
endif()

Soeren Peters's avatar
Soeren Peters committed
project(VirtualFluids CXX)
set (CMAKE_PATH "${CMAKE_SOURCE_DIR}/CMake")
option(BUILD_VF_CPU "Build VirtualFluids cpu variant" OFF)
option(BUILD_VF_GPU "Build VirtualFluids gpu variant" ON)
include("CMake/CMakeCABMacros.cmake")
include("CMake/FileUtilities.cmake")
include("CMake/VirtualFluidsMacros.cmake")

# FIND MPI
IF((NOT ${CMAKE_CXX_COMPILER} MATCHES mpicxx) AND (NOT ${CMAKE_CXX_COMPILER} MATCHES mpiicpc))# OR NOT ${CMAKE_CXX_COMPILER} MATCHES cc OR NOT ${CMAKE_CXX_COMPILER} MATCHES mpiCC)
    FIND_PACKAGE(MPI REQUIRED)
ENDIF()

 #   add_subdirectory(gpu)
#endif()