diff --git a/CMakeLists.txt b/CMakeLists.txt index 33a7f54ebc..f9250d8c57 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,6 +98,8 @@ SET(WITH_ROCALUTION FALSE CACHE BOOL "Compile with Rocalution library.") SET(WITH_Zoltan FALSE CACHE BOOL "Link in Zoltan mesh repartitioning library.") +SET(INCLUDE_ELMER_MODULES "" CACHE STRING "Semicolon separated list of solver modules to be compiled. If empty compile all.") + # Let user select if the contiguous attribute is used or not SET(USE_CONTIGUOUS FALSE CACHE BOOL "Use contiguous attribute") diff --git a/cmake/Modules/AddModules.cmake b/cmake/Modules/AddModules.cmake index 1ff0751a8b..5484536ce5 100644 --- a/cmake/Modules/AddModules.cmake +++ b/cmake/Modules/AddModules.cmake @@ -4,10 +4,22 @@ # Adds solver module having sources in ".F90". # Optionally treat all .F90 files in as sources. # +# # ADD_ELMER_MODULES([SKIP ... ]) # Treats all directories and .F90 files from current directory as input # for ADD_ELMER_MODULE. Skips those files and directories that equal # to for some 0