mirror of
https://github.com/koloideal/SortLab.git
synced 2026-06-10 10:25:30 +03:00
final
This commit is contained in:
+37
-19
@@ -9,27 +9,46 @@ FetchContent_Declare(
|
||||
SFML
|
||||
GIT_REPOSITORY https://github.com/SFML/SFML.git
|
||||
GIT_TAG 2.6.x
|
||||
GIT_SHALLOW ON
|
||||
EXCLUDE_FROM_ALL
|
||||
SYSTEM
|
||||
GIT_SHALLOW ON
|
||||
EXCLUDE_FROM_ALL
|
||||
SYSTEM
|
||||
)
|
||||
FetchContent_MakeAvailable(SFML)
|
||||
|
||||
add_executable(SortLab
|
||||
src/main.cpp
|
||||
src/App.cpp
|
||||
src/App_audio.cpp
|
||||
src/Array.cpp
|
||||
src/Sorter.cpp
|
||||
src/UI.cpp
|
||||
src/OperationsHistory.cpp
|
||||
src/ProgressMap.cpp
|
||||
src/sorters/BubbleSorter.cpp
|
||||
src/sorters/SelectionSorter.cpp
|
||||
src/sorters/InsertionSorter.cpp
|
||||
src/sorters/MergeSorter.cpp
|
||||
src/sorters/QuickSorter.cpp
|
||||
)
|
||||
if(WIN32)
|
||||
add_executable(SortLab
|
||||
src/main.cpp
|
||||
src/App.cpp
|
||||
src/App_audio.cpp
|
||||
src/Array.cpp
|
||||
src/Sorter.cpp
|
||||
src/UI.cpp
|
||||
src/OperationsHistory.cpp
|
||||
src/ProgressMap.cpp
|
||||
src/sorters/BubbleSorter.cpp
|
||||
src/sorters/SelectionSorter.cpp
|
||||
src/sorters/InsertionSorter.cpp
|
||||
src/sorters/MergeSorter.cpp
|
||||
src/sorters/QuickSorter.cpp
|
||||
assets/app.rc
|
||||
)
|
||||
else()
|
||||
add_executable(SortLab
|
||||
src/main.cpp
|
||||
src/App.cpp
|
||||
src/App_audio.cpp
|
||||
src/Array.cpp
|
||||
src/Sorter.cpp
|
||||
src/UI.cpp
|
||||
src/OperationsHistory.cpp
|
||||
src/ProgressMap.cpp
|
||||
src/sorters/BubbleSorter.cpp
|
||||
src/sorters/SelectionSorter.cpp
|
||||
src/sorters/InsertionSorter.cpp
|
||||
src/sorters/MergeSorter.cpp
|
||||
src/sorters/QuickSorter.cpp
|
||||
)
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
target_compile_options(SortLab PRIVATE /utf-8)
|
||||
@@ -39,7 +58,6 @@ target_include_directories(SortLab PRIVATE ${CMAKE_SOURCE_DIR}/include)
|
||||
|
||||
target_link_libraries(SortLab PRIVATE sfml-graphics sfml-window sfml-system sfml-audio)
|
||||
|
||||
|
||||
if(WIN32)
|
||||
add_custom_command(TARGET SortLab POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
|
||||
Reference in New Issue
Block a user