CMakeLists.txt 710 Bytes
Newer Older
1 2
add_subdirectory("common")
add_subdirectory("model")
3 4 5
if(dune-testtools_FOUND)
    add_subdirectory("test")
endif()
6

7 8 9 10
add_executable(richards richards.cc)
dune_target_link_libraries(richards ${DUNE_LIBS})
target_link_libraries(richards
    dorie-richards spdlog muparser::muparser hdf5 yaml-cpp)
11

12 13 14 15
add_executable(transport transport.cc)
dune_target_link_libraries(transport ${DUNE_LIBS})
target_link_libraries(transport
    dorie-richards dorie-transport spdlog muparser::muparser hdf5 yaml-cpp)
16 17

add_custom_target("dorie" DEPENDS richards transport)
18 19 20 21

# enable setting operator scheme from config file
if(EXPERIMENTAL_DG_FEATURES)
    target_compile_definitions("dorie" PUBLIC -DEXPERIMENTAL_DG_FEATURES)
22
endif()