Skip to content
Discussion options

You must be logged in to vote

I usually simply work with the following minimal file

cmake_minimum_required(VERSION 3.14)

project(
    mysim
    VERSION 0.1
    LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)

find_package(
    MFEM
    REQUIRED
    HINTS
        ${MFEM_DIR}
        ../mfem)
message(STATUS "Found mfem config in: ${mfem_DIR} (version ${MFEM_VERSION})")

add_subdirectory(src)

and build mfem manually in a separate folder.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@samwyss
Comment options

Answer selected by samwyss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants