Mess up with dll on windows
This commit is contained in:
parent
c0a00e4e4a
commit
aa871b8b76
@ -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
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user