I'm starting off simple with mostly just some checks that SFML Network enumerations match up with CSFML Network enumerations.
To implement this the tests needed access to SFML. CSFML targets already depend on SFML but that dependency is PRIVATE (as it should be). The tests therefore also need to link against SFML::Network to get access to its headers. To make sure that target was available in test/CMakeLists.txt I moved the find_package(SFML) call up to the top level CMakeLists.txt.
I'm starting off simple with mostly just some checks that SFML Network enumerations match up with CSFML Network enumerations.
To implement this the tests needed access to SFML. CSFML targets already depend on SFML but that dependency is
PRIVATE
(as it should be). The tests therefore also need to link againstSFML::Network
to get access to its headers. To make sure that target was available in test/CMakeLists.txt I moved thefind_package(SFML)
call up to the top level CMakeLists.txt.