mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
extract major openfoam version from WM_PROJECT_VERSION environment variable in make/options files and use it for a preprocessor flag (OPENFOAM_VERSION_MAJOR) for conditional compilation make CFDEMcoupling compile with OF 4.x, 5.x and 6
18 lines
535 B
Plaintext
18 lines
535 B
Plaintext
FOAM_VERSION_MAJOR := $(word 1,$(subst ., ,$(WM_PROJECT_VERSION)))
|
|
PFLAGS+= -DOPENFOAM_VERSION_MAJOR=$(FOAM_VERSION_MAJOR)
|
|
|
|
EXE_INC = \
|
|
$(PFLAGS) \
|
|
-IalphaContactAngle \
|
|
-I$(LIB_SRC)/transportModels \
|
|
-I$(LIB_SRC)/transportModels/incompressible/lnInclude \
|
|
-I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \
|
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
|
-I$(LIB_SRC)/meshTools/lnInclude
|
|
|
|
LIB_LIBS = \
|
|
-linterfaceProperties \
|
|
-lincompressibleTransportModels \
|
|
-lfiniteVolume \
|
|
-lmeshTools
|