Skip to content
Snippets Groups Projects
Select Git revision
  • 4b245d6cdd00235b98241bda7eb89ab6e9b3cf9a
  • develop default protected
  • feature/kinetic-schemes
  • feature/reconstruction
  • feature/local-dt-fsi
  • feature/composite-scheme-sources
  • feature/composite-scheme-other-fluxes
  • feature/serraille
  • feature/variational-hydro
  • feature/composite-scheme
  • hyperplastic
  • feature/polynomials
  • feature/gks
  • feature/implicit-solver-o2
  • feature/coupling_module
  • feature/implicit-solver
  • feature/merge-local-dt-fsi
  • master protected
  • feature/escobar-smoother
  • feature/hypoelasticity-clean
  • feature/hypoelasticity
  • v0.5.0 protected
  • v0.4.1 protected
  • v0.4.0 protected
  • v0.3.0 protected
  • v0.2.0 protected
  • v0.1.0 protected
  • Kidder
  • v0.0.4 protected
  • v0.0.3 protected
  • v0.0.2 protected
  • v0 protected
  • v0.0.1 protected
33 results

CMakeLists.txt

Blame
  • CMakeLists.txt 1.28 KiB
    cmake_minimum_required (VERSION 3.4)
    
    if (${CMAKE_BINARY_DIR} MATCHES "^${CMAKE_SOURCE_DIR}")
      if (NOT ${CMAKE_BINARY_DIR} MATCHES "^${CMAKE_SOURCE_DIR}/build")
        message("")
        message("##############################################")
        message("     In-source building is not allowed!       ")
        message("##############################################")
        message("")
        message(" Run cmake outside from source directory ")
        message(" or from ${CMAKE_SOURCE_DIR}/build")
        message("")
        message("----------------------------------------------")
        message(" warning: remaining generated files!")
        message("   ${CMAKE_BINARY_DIR}/CMakeCache.txt")
        message("   ${CMAKE_BINARY_DIR}/CMakeFiles")
        message("----------------------------------------------")
        message("")
        message(" Please remove remaining generated files ")
        message(" and run cmake from an appropriate location")
        message("")
    
        message(FATAL_ERROR  "\n** CMake aborted **")
      endif()
    endif()
    
    project (Pastis)
    
    list(APPEND CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -O3)
    
    add_subdirectory(${CMAKE_SOURCE_DIR}/packages/kokkos)
    add_subdirectory(utils)
    
    include_directories(${Kokkos_INCLUDE_DIRS_RET})
    include_directories(utils)
    
    add_executable(pastis main.cpp)
    target_link_libraries(pastis kokkos PastisUtils)