Skip to content
Snippets Groups Projects
Commit 0a23e4d7 authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'feature/improve-cmake-setup' into 'master'

[cmake] No need to enable all. dumux_add_test links to dumux libs

See merge request !229
parents 633d1b75 09f1d463
No related branches found
No related tags found
1 merge request!229[cmake] No need to enable all. dumux_add_test links to dumux libs
Pipeline #55572 failed
Pipeline: dumux-lecture

#55573

    # SPDX-FileCopyrightInfo: Copyright © DuMux-Lecture contributors, see AUTHORS.md in root folder
    # SPDX-License-Identifier: GPL-3.0-or-later
    cmake_minimum_required(VERSION 3.16)
    cmake_minimum_required(VERSION 3.22)
    project("dumux-lecture" C CXX)
    ......@@ -23,12 +23,17 @@ include(DuneMacros)
    # start a dune project with information from dune.module
    dune_project()
    dune_enable_all_packages()
    find_file(DUMUX_RUNTEST NAMES runtest.py HINTS ${dumux_INCLUDE_DIRS} PATH_SUFFIXES bin/testing bin REQUIRED NO_DEFAULT_PATH)
    # find test executable
    find_file(DUMUX_RUNTEST
    NAMES runtest.py
    HINTS ${dumux_INCLUDE_DIRS}
    PATH_SUFFIXES bin/testing bin
    REQUIRED NO_DEFAULT_PATH
    )
    add_subdirectory(lecture EXCLUDE_FROM_ALL)
    add_subdirectory(dumux)
    # finalize the dune project, e.g. generating config.h etc.
    finalize_dune_project(GENERATE_CONFIG_H_CMAKE)
    finalize_dune_project()
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment