CMakeLists.txt 762 Bytes
Newer Older
1 2
add_subdirectory("common")
add_subdirectory("model")
3
if(DORIE_TESTING)
4 5
    add_subdirectory("test")
endif()
6

7

8 9 10 11 12 13 14 15 16 17 18 19 20 21
# create targets for many possible combinations
foreach(dim 2 3)
    foreach(rorder RANGE ${DORIE_MAX_RORDER_${dim}})
        dorie_compile_instance(MODEL "richards"
                               DIMENSION ${dim}
                               RORDER ${rorder})
        foreach(torder RANGE ${DORIE_MAX_TORDER_${dim}})
            dorie_compile_instance(MODEL "transport"
                                   DIMENSION ${dim}
                                   RORDER ${rorder}
                                   TORDER ${torder})
        endforeach()
    endforeach()
endforeach()
22

23
# Global target
24
add_custom_target("dorie" DEPENDS richards transport)