File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.21 )
1+ cmake_minimum_required (VERSION 3.16 )
22project (CMakeSFMLProject LANGUAGES CXX )
33
4+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin )
5+
46include (FetchContent )
57FetchContent_Declare (SFML
68 GIT_REPOSITORY https://github.com/SFML/SFML.git
@@ -10,9 +12,5 @@ FetchContent_MakeAvailable(SFML)
1012add_executable (CMakeSFMLProject src/main.cpp )
1113target_link_libraries (CMakeSFMLProject PRIVATE sfml-graphics )
1214target_compile_features (CMakeSFMLProject PRIVATE cxx_std_17 )
13- if (WIN32 AND BUILD_SHARED_LIBS )
14- add_custom_command (TARGET CMakeSFMLProject POST_BUILD
15- COMMAND ${CMAKE_COMMAND} -E copy $< TARGET_RUNTIME_DLLS:CMakeSFMLProject> $< TARGET_FILE_DIR:CMakeSFMLProject> COMMAND_EXPAND_LISTS )
16- endif ()
1715
1816install (TARGETS CMakeSFMLProject )
You can’t perform that action at this time.
0 commit comments