I use the Primer-blast tool on NCBI to design intron-spanning primers by selecting the option under "Exon/Intron Selection" (See attachment). This ensures that the primers do not bind to DNA.
use a reference gene for your sample. So perform for your cDNA PCR with primers for other gene which has a intron and you know exactly how long is the product where the tamplate is genomic DNA and cDNA.