mirror of
https://github.com/koloideal/SortLab.git
synced 2026-06-10 10:25:30 +03:00
skelet
This commit is contained in:
+18
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user