Skip to content
Snippets Groups Projects
Select Git revision
  • 56fc8185d5a346b3b9bd18ad2e3718e1fc48495c
  • main default protected
  • 16-include-advection-into-upstream-version
  • ml/refactor-simulation-grid
  • sh/2D-BTCS-Optimizations
  • sh/rowmajor-inplace
  • ml/sycl-impl
  • ml/restructure-api
  • stenheimbrodt-praktikum
  • ml/add-verbosity
  • fixed-point
  • improve_openmp
  • v0.4.2
  • v0.4.1
  • v0.4
  • hand-in-hp
  • v0.3
  • v0.2
  • v0.1
19 results

CMakeLists.txt

Blame
  • user avatar
    Max Luebke authored
    Now the API does not rely on `Grid` structure but lay a wrapper around
    an existing memory region, which defines for example a diffusion grid.
    
    All simulation steps are done in place.
    
    The user has to make sure the memory existing throughout the lifetime of
    a simulation grid.
    3612dcf0
    History
    CMakeLists.txt 733 B
    include(FetchContent)
    
    FetchContent_Declare( 
      googletest 
      GIT_REPOSITORY https://github.com/google/googletest.git
      GIT_TAG v1.15.2
    )
    
    FetchContent_MakeAvailable(googletest)
    
    
    add_executable(testTug 
    setup.cpp
    testDiffusion.cpp 
    testFTCS.cpp 
    testBoundary.cpp
    )
    target_link_libraries(testTug tug GTest::gtest)
      
    include(GoogleTest)
    gtest_discover_tests(testTug)
    
    # get relative path of the CSV file
    get_filename_component(testSimulationCSV "FTCS_11_11_7000.csv" REALPATH)
    # set relative path in header file
    configure_file(testSimulation.hpp.in testSimulation.hpp)
    # include test directory with generated header file from above
    target_include_directories(testTug PUBLIC "${CMAKE_CURRENT_BINARY_DIR}" "${PROJECT_SOURCE_DIR}/src")