mirror of
https://github.com/koloideal/SortLab.git
synced 2026-06-10 02:15:31 +03:00
skelet
This commit is contained in:
@@ -0,0 +1 @@
|
||||
build
|
||||
@@ -0,0 +1,19 @@
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
project(SortLab LANGUAGES CXX)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
SFML
|
||||
GIT_REPOSITORY https://github.com/SFML/SFML.git
|
||||
GIT_TAG 2.6.x
|
||||
)
|
||||
FetchContent_MakeAvailable(SFML)
|
||||
|
||||
add_executable(SortLab
|
||||
src/main.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(SortLab PRIVATE sfml-graphics sfml-window sfml-system)
|
||||
@@ -0,0 +1,19 @@
|
||||
#include <SFML/Graphics.hpp>
|
||||
|
||||
int main() {
|
||||
sf::RenderWindow window(sf::VideoMode(1280, 720), "SortLab");
|
||||
|
||||
while (window.isOpen()) {
|
||||
sf::Event event{};
|
||||
while (window.pollEvent(event)) {
|
||||
if (event.type == sf::Event::Closed) {
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
window.clear(sf::Color(18, 18, 22));
|
||||
window.display();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user