CCT family genes play crucial roles in photoperiodic flowering and environmental stress response; however, there are limited reports in Solanum species with considerable edible and medicinal value. In this study, we conducted genome-wide characterization and expression profiling analysis of the CCT gene family in two Solanum species: tomato (Solanum lycopersicum L.) and eggplant (Solanum melongena L.). A total of 27 SlCCT and 29 SmCCT genes were identified in the tomato and eggplant genomes, respectively. Phylogenetic analysis showed that the CCT gene family could be divided into six subgroups (COL I, COL II, COL III, PRR, CMF I, and CMF II) in Oryza sativa and Arabidopsis thaliana. The similarity in the distribution of exon–intron structures and conserved motifs within the same subgroup indicated the conservation of SlCCT and SmCCT genes during evolution. Intraspecies collinearity analysis revealed that six pairs of SlCCT genes and seven pairs of SmCCT genes showed collinear relationships, suggesting that segmental duplication played a vital role in the expansion of the SlCCT and SmCCT family genes. Cis-acting element prediction indicated that SlCCT and SmCCT were likely to be involved in multiple responses stimulated by light, phytohormones, and abiotic stress. RT-qPCR analysis revealed that SmCCT15, SlCCT6/SlCCT14, and SlCCT23/SmCCT9 responded significantly to salt, drought, and cold stress, respectively. Our comprehensive analysis of the CCT gene family in tomato and eggplant provides a basis for further studies on its molecular role in regulating flowering and resistance to abiotic stress, and provides valuable candidate gene resources for tomato and eggplant molecular breeding.