mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Demonstrate failure
This commit is contained in:
parent
444873d287
commit
b4986140d0
@ -13,11 +13,11 @@ if(PROJECT_IS_TOP_LEVEL)
|
|||||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(SFML 3.0.0 EXACT CONFIG REQUIRED COMPONENTS Graphics Network Audio)
|
find_package(SFML 3.0.0 EXACT CONFIG REQUIRED COMPONENTS Graphics Network)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_executable(test-sfml-install Install.cpp)
|
add_executable(test-sfml-install Install.cpp)
|
||||||
target_link_libraries(test-sfml-install PRIVATE SFML::Graphics SFML::Network SFML::Audio)
|
target_link_libraries(test-sfml-install PRIVATE SFML::Graphics SFML::Network)
|
||||||
|
|
||||||
if(SFML_USE_STATIC_STD_LIBS)
|
if(SFML_USE_STATIC_STD_LIBS)
|
||||||
set_target_properties(test-sfml-install PROPERTIES MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
set_target_properties(test-sfml-install PROPERTIES MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||||
|
@ -7,9 +7,6 @@
|
|||||||
// Instantiate some types from each module to test for linker issues. This program is not meant be ran.
|
// Instantiate some types from each module to test for linker issues. This program is not meant be ran.
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
// Audio
|
|
||||||
[[maybe_unused]] const sf::SoundBufferRecorder soundBufferRecorder;
|
|
||||||
|
|
||||||
// Graphics
|
// Graphics
|
||||||
[[maybe_unused]] const sf::Color color;
|
[[maybe_unused]] const sf::Color color;
|
||||||
[[maybe_unused]] const sf::IntRect rect;
|
[[maybe_unused]] const sf::IntRect rect;
|
||||||
|
Loading…
Reference in New Issue
Block a user