Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.18)

# COMMON SETTINGS
PROJECT(OneDSolver)

SET(CMAKE_CXX_STANDARD 20)
SET(CMAKE_CXX_STANDARD_REQUIRED TRUE)

ENABLE_LANGUAGE(C CXX)

# SET OPTIONS
OPTION(BUILD_SV_INSTALLER "Build SimVascular Installer" OFF)
OPTION(buildPy "Build Python Interface" OFF)
OPTION(buildDocs "Build Documentation" OFF)
OPTION(ENABLE_UNIT_TEST "Enable unit tests" ON)
OPTION(ENABLE_INTERFACE_LIBRARY "Build 1D interface library for 3D-1D coupling" ON)
SET(sparseSolverType "skyline" CACHE STRING "Use Sparse Solver")
SET_PROPERTY(CACHE sparseSolverType PROPERTY STRINGS skyline superlu csparse)

Expand Down Expand Up @@ -76,7 +81,7 @@ include(FetchContent)
FetchContent_Declare(
nlohmann_json
GIT_REPOSITORY https://github.com/nlohmann/json.git
GIT_TAG v3.11.2 # You can specify a version or use the latest tag
GIT_TAG v3.12.0 # You can specify a version or use the latest tag
)
FetchContent_MakeAvailable(nlohmann_json)
# Global include for nlohmann headers
Expand Down
5 changes: 5 additions & 0 deletions Code/Source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,8 @@ install( TARGETS ${PROJECT_NAME}
DESTINATION bin
COMPONENT executable )

# BUILD INTERFACE LIBRARY FOR 3D-1D COUPLING
IF(ENABLE_INTERFACE_LIBRARY)
ADD_SUBDIRECTORY(interface)
MESSAGE(STATUS "Building interface library for 3D-1D coupling")
ENDIF()
Loading
Loading