As others pointed out, there are examples of spaces where compact subsets are the same but the spaces aren't homeomorphic. For example anticompact spaces, spaces for which every compact subset is finite, provide some examples (finite spaces, discrete spaces, spaces with cocountable topology, Arens-Fort space, see here for more examples on pi-base). Another class of spaces which give some examples are Noetherian spaces, spaces for which every subspace is compact (finite spaces, indiscrete spaces, spaces with cofinite topology, see here for more examples on pi-base).
Definition. We call $X$ a KC space if every compact set is closed, we call $X$ a compactly generated space (or $k$-space) if $U\subseteq X$ is open iff $U\cap K\subseteq K$ is open in $K$ for all compact $K\subseteq X$.
Compactly generated KC spaces include sequential Hausdorff spaces, e.g. metric spaces. But they also include more exotic topologies like the Alexandroff one point compactification of any metrizable space, which are $T_1$ but generally not $T_2$ (here I show any such space is a KC space, and that they are countably generated follows from compactness).
Let $\mathcal{K}_X, \mathcal{C}_X, \mathcal{KC}_X, \mathcal{F}_X$ denote all compact, all closed, all compact closed, and all finite subsets of $(X, \tau)$. Necessarily $\mathcal{F}_X\subseteq \mathcal{K}_X$ and $\mathcal{KC}_X=\mathcal{K}_X\cap\mathcal{C}_X$, while all the other relations don't hold in general. \begin{align*} \mathcal{F}_X\subseteq \mathcal{C}_X\text{ is equivalent to }T_1,&&\mathcal{K}_X\subseteq \mathcal{C}_X\text{ is equivalent to KC},\\ \mathcal{C}_X\subseteq \mathcal{K}_X\text{ is equivalent to compact,}&& \mathcal{C}_X\subseteq \mathcal{F}_X\text{ is equivalent to finite,}\\ \mathcal{K}_X = \mathcal{F}_X\text{ is equivalent to anticompact,}&&\mathcal{K}_X = 2^X\text{ is equivalent to Noetherian,} \\ \mathcal{C}_X = 2^X\text{ is equivalent to discrete,}&& \mathcal{F}_X = 2^X\text{ is equivalent to finite.}\end{align*}
We know $\emptyset\in \mathcal{F}_X, \mathcal{K}_X, \mathcal{C}_X, \mathcal{KC}_X$ and $X\in\mathcal{C}_X$, and each of the classes $\mathcal{F}_X, \mathcal{K}_X, \mathcal{C}_X, \mathcal{KC}_X$ is closed under finite unions, $\mathcal{F}_X, \mathcal{C}_X, \mathcal{KC}_X$ are closed under arbitrary intersections, while $\mathcal{K}_X$ need not be closed under finite intersections. A sufficient condition for $\mathcal{K}_X$ to be closed under arbitrary intersections is that $X$ is a KC space.
Proposition 1. $X$ is compactly generated KC space iff $\mathcal{C}_X = \{A\subseteq X : \forall_{K\in \mathcal{K}_X} A\cap K\in \mathcal{K}_X\}$ and $\mathcal{K}_X$ is closed under finite intersections
Proof: First note $\mathcal{C}_X\subseteq\{A\subseteq X : \forall_{K\in \mathcal{K}_X} A\cap K\in \mathcal{K}_X\}$ is always true, since if $A$ is closed and $K$ is compact, then $A\cap K$ is closed in $K$, so compact. If $A\cap K$ is compact for all compact $K$, then if $X$ is a KC space, we can say that $A\cap K$ is closed in $X$, and so in $K$. If $X$ is compactly generated, this implies that $A$ is closed in $X$. Now conversely suppose that $\mathcal{C}_X = \{A\subseteq X : \forall_{K\in \mathcal{K}_X} A\cap K\in \mathcal{K}_X\}$. If $A$ is compact, then $A\cap K$ is compact for any compact $K$, so that $A$ is closed. This implies $X$ is a KC space. If $A\cap K$ is closed in $K$ for any compact $K$, then $A\cap K$ is compact for any compact $K$, so that $A$ is closed. So $X$ is compactly generated. $\square$
This proposition shows that if $f:X\to Y$ is a bijection between compactly generated KC spaces, such that $f(\mathcal{K}_X) = \mathcal{K}_Y$, then $f$ is a homeomorphism.
Proposition 2. $X$ is generated by compact closed subsets iff $$\mathcal{C}_X = \{A\subseteq X : \forall_{K\in \mathcal{KC}_X} A\cap K\in \mathcal{KC}_X\}$$
Proof: $\mathcal{C}_X\subseteq\{A\subseteq X : \forall_{K\in \mathcal{KC}_X} A\cap K\in \mathcal{KC}_X\}$ is always true, just like in proposition 1. If $A\cap K$ is compact closed for every compact closed $K$, then $A\cap K$ is closed in every compact closed $K$, so $A$ is closed in $X$ when $X$ is generated by compact closed sets. Conversely, suppose that $A\cap K$ is closed in compact closed $K$. Then $A\cap K$ is compact as a closed subset of compact space, and it's closed in $X$ since $K$ is closed in $X$. So $A\cap K\in\mathcal{KC}_X$ for $K\in\mathcal{K}_X$ and so $A$ is closed. $\square$
Let's investigate conditions under which $\mathcal{K}\subseteq 2^X$ will be a family of compact sets. Necessarily $\mathcal{F}_X\subseteq\mathcal{K}$ and $\mathcal{K}$ is closed under finite unions. Let's try to give topology to $X$ according to the formula $\mathcal{C}_X = \{A\subseteq X : \forall_{K\in \mathcal{K}} A\cap K\in \mathcal{K}\}$. The first problem is that $\mathcal{C}_X$ needs to be closed under arbitrary intersections in order to be a family of closed sets. For this we can assume that $\mathcal{K}$ is closed under arbitrary intersections. Then $X$ defines a $T_1$ topological space. In this topology, there is no guarantee that $\mathcal{K}$ consists of compact sets. This can be fixed by demanding that subfamilies $\mathcal{K}'\subseteq \mathcal{K}$ with finite intersection property have non-empty intersection. This will guarantee that $\mathcal{K}\subseteq \mathcal{K}_X$. Then $X$ will be generated by compact closed sets, since if $A\cap K$ is closed in $K$ for all compact closed $K$, then $A\cap K$ will be closed in $K$ for all $K\in\mathcal{K}$, which is seen to be equivalent to $A\cap K\in \mathcal{K}$ for all $K\in\mathcal{K}$, hence $A\in\mathcal{C}_X$.
We see that perhaps this construction is more suited for $\mathcal{K}$ to be a family of compact closed sets. In this case by not demanding $\mathcal{F}_X\subseteq \mathcal{K}$ we obtain a slightly more general construction.
Suppose you additionally assume that for any $K\in\mathcal{K}$, the topology given by closed sets $\mathcal{C}_K = \{A\in\mathcal{K}: A\subseteq K\}$ is a KC space. This topology on $K$ coincides with subspace topology $K\subseteq X$. If $A\subseteq X$ is compact, then $A\cap K$ is a closed subset of $A$, so compact subset of $K$, so closed in $K$, and hence $A\cap K\in\mathcal{K}$. It follows that $A\in\mathcal{C}_X$ so that $X$ is a KC space.
Note that I haven't claimed that $\mathcal{K} = \mathcal{K}_X$ under these conditions, and it is false since $\mathcal{K} = \{K\subseteq \mathbb{Q}^\ast : K\setminus \{\infty\}\text{ is compact}\}$ where $\mathbb{Q}^\ast$ is the Alexandroff one point compactification of $\mathbb{Q}$ satisfies all the properties but $\mathbb{Q}^\ast\notin \mathcal{K}$ even though $\mathbb{Q}^\ast$ is compact.