DAMASK_EICMD/code/source/CMakeLists.txt

21 lines
606 B
CMake

# group source
set (SOURCE "source_thermal_dissipation"
"source_thermal_externalheat"
"source_damage_isoBrittle"
"source_damage_isoDuctile"
"source_damage_anisoBrittle"
"source_damage_anisoDuctile"
"source_vacancy_phenoplasticity"
"source_vacancy_irradiation"
"source_vacancy_thermalfluc"
)
# compile modules for source
foreach (p ${SOURCE})
add_library (${p} MODULE "${p}.f90")
endforeach (p)
# set libraries/modules for linking
foreach (p ${SOURCE})
set (AUX_LIB ${AUX_LIB} ${p})
endforeach (p)