Apply warnings to install test
Because the install test project can't access SFML CMake functions, these warnings are only applied when building the install tests as a part of SFML.
This commit is contained in:
parent
8c6b578012
commit
4807c779a7
@ -14,6 +14,7 @@ get_target_property(DOCTEST_INCLUDE_DIRS doctest INTERFACE_INCLUDE_DIRECTORIES)
|
|||||||
target_include_directories(doctest SYSTEM INTERFACE ${DOCTEST_INCLUDE_DIRS})
|
target_include_directories(doctest SYSTEM INTERFACE ${DOCTEST_INCLUDE_DIRS})
|
||||||
|
|
||||||
add_subdirectory(install)
|
add_subdirectory(install)
|
||||||
|
set_target_warnings(test-sfml-install)
|
||||||
|
|
||||||
add_library(sfml-test-main STATIC
|
add_library(sfml-test-main STATIC
|
||||||
TestUtilities/SystemUtil.hpp
|
TestUtilities/SystemUtil.hpp
|
||||||
|
@ -6,32 +6,32 @@
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
// Audio
|
// Audio
|
||||||
sf::InputSoundFile input_sound_file;
|
[[maybe_unused]] sf::InputSoundFile inputSoundFile;
|
||||||
sf::Listener listener;
|
[[maybe_unused]] sf::Listener listener;
|
||||||
sf::Music music;
|
[[maybe_unused]] sf::Music music;
|
||||||
sf::Sound sound;
|
[[maybe_unused]] sf::Sound sound;
|
||||||
|
|
||||||
// Graphics
|
// Graphics
|
||||||
sf::Color color;
|
[[maybe_unused]] sf::Color color;
|
||||||
sf::Font font;
|
[[maybe_unused]] sf::Font font;
|
||||||
sf::RenderWindow render_window;
|
[[maybe_unused]] sf::RenderWindow renderWindow;
|
||||||
sf::Sprite sprite;
|
[[maybe_unused]] sf::Sprite sprite;
|
||||||
sf::Vertex vertex;
|
[[maybe_unused]] sf::Vertex vertex;
|
||||||
|
|
||||||
// Network
|
// Network
|
||||||
sf::Ftp ftp;
|
[[maybe_unused]] sf::Ftp ftp;
|
||||||
sf::Http http;
|
[[maybe_unused]] sf::Http http;
|
||||||
sf::Packet packet;
|
[[maybe_unused]] sf::Packet packet;
|
||||||
sf::UdpSocket udp_socket;
|
[[maybe_unused]] sf::UdpSocket udpSocket;
|
||||||
|
|
||||||
// System
|
// System
|
||||||
sf::Angle angle;
|
[[maybe_unused]] sf::Angle angle;
|
||||||
sf::FileInputStream file_input_stream;
|
[[maybe_unused]] sf::FileInputStream fileInputStream;
|
||||||
sf::String string;
|
[[maybe_unused]] sf::String string;
|
||||||
sf::Time time;
|
[[maybe_unused]] sf::Time time;
|
||||||
|
|
||||||
// Window
|
// Window
|
||||||
sf::Context context;
|
[[maybe_unused]] sf::Context context;
|
||||||
sf::VideoMode video_mode;
|
[[maybe_unused]] sf::VideoMode videoMode;
|
||||||
sf::Window window;
|
[[maybe_unused]] sf::Window window;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user