SFML / CSFML

Official binding of SFML for C
https://www.sfml-dev.org
Other
342 stars 121 forks source link

Add tests for Network module #291

Closed ChrisThrasher closed 1 week ago

ChrisThrasher commented 1 week ago

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.