Haven't gotten into Denmark yet. My girlfriend is Austrian and we're moving there together.
AFAIK, I get a residence and work permit as we're moving together and that she is a EU national who would be working as a Asst.Professor there.
"The following family members of an EU/EEA citizen or Swiss citizen, who is exercising his/her right to free movement in Denmark, or of a Danish citizen who is exercising or who has exercised his/her right to free movement in another EU/EEA country or Switzerland, has the right to have a visa application processed in accordance with EU regulations:
* spouse
* cohabiting partner aged 18 or over <----
* ..."
See https://www.nyidanmark.dk/en-us/coming_to_dk/visa/visas-unde....