Cmake configuration issues for building static netgen libs

I’m trying to configure Cmake to build static netgen libraries and have gotten quite far by basically setting

add_library(nglib STATIC nglib.cpp ${nglib_objects})

to STATIC instead of SHARED which has built most static .a libs, but I can’t seem to find how to configure to build statically. Does anyone have any idea or tips what or where to change (new to cmake so just trying to do it by trial and error).