set(HEADERS) set(CPPS networking.cpp $<$: directplay.cpp > ) if(WIN32) set(PLATFORM_LIBS ${DXGUID_LIBRARY}) endif() add_library(networking STATIC ${HEADERS} ${CPPS}) target_link_libraries(networking PRIVATE ddio mem misc ${PLATFORM_LIBS} )