This commit is contained in:
2026-03-02 15:22:47 +03:00
parent c0ab7e843c
commit 7cdd2068be
6 changed files with 146 additions and 16 deletions
+18 -1
View File
@@ -8,12 +8,29 @@ include(FetchContent)
FetchContent_Declare(
SFML
GIT_REPOSITORY https://github.com/SFML/SFML.git
GIT_TAG 2.6.x
GIT_TAG 2.6.x
GIT_SHALLOW ON
EXCLUDE_FROM_ALL
SYSTEM
)
FetchContent_MakeAvailable(SFML)
add_executable(SortLab
src/main.cpp
src/App.cpp
src/Array.cpp
)
target_include_directories(SortLab PRIVATE ${CMAKE_SOURCE_DIR}/include)
target_link_libraries(SortLab PRIVATE sfml-graphics sfml-window sfml-system)
if(WIN32)
add_custom_command(TARGET SortLab POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_RUNTIME_DLLS:SortLab>
$<TARGET_FILE_DIR:SortLab>
COMMAND_EXPAND_LISTS
)
endif()