Mess up with dll on windows

This commit is contained in:
JackCarterSmith 2024-10-31 19:43:23 +01:00
parent c0a00e4e4a
commit aa871b8b76
Signed by: JackCarterSmith
GPG Key ID: 832E52F4E23F8F24
3 changed files with 17 additions and 14 deletions

View File

@ -64,7 +64,7 @@ target_sources(${PROJECT_NAME} PRIVATE
# target_compile_options(${PROJECT_NAME} PRIVATE -pg -no-pie)
# target_link_options(${PROJECT_NAME} PRIVATE -pg -no-pie)
#endif()
target_link_libraries(${PROJECT_NAME} sfml::sfml)
target_link_libraries(${PROJECT_NAME} -static gcc stdc++ pthread -dynamic sfml::sfml)
set_target_properties(${PROJECT_NAME} PROPERTIES
OUTPUT_NAME ${PROJECT_NAME}${BUILDNAME_SUFFIX}
CXX_STANDARD 17

View File

@ -87,6 +87,8 @@ int main(int argc, char** argv) {
}
}
// Focused-only keys actions
if (mainWindow->hasFocus()) {
if (sf::Keyboard::isKeyPressed(sf::Keyboard::Escape)) {
mainWindow->close();
status = GAME_QUIT;
@ -101,6 +103,7 @@ int main(int argc, char** argv) {
arcadeGame.EventWindowSizeChanged(mainWindow->getSize().x, mainWindow->getSize().y);
}
}
status = arcadeGame.Tick();

View File

@ -21,7 +21,7 @@ class ProtoTank(ConanFile):
def configure(self):
self.options["sfml"].audio = True
self.options["sfml"].audio = False
self.options["sfml"].window = True
self.options["sfml"].network = False
self.options["sfml"].graphics = True