Skip to content

Commit 8aba276

Browse files
committed
first commit
0 parents  commit 8aba276

File tree

18 files changed

+7110
-0
lines changed

18 files changed

+7110
-0
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
defaults:
6+
run:
7+
shell: bash
8+
9+
jobs:
10+
build:
11+
name: ${{ matrix.platform.name }} ${{ matrix.config.name }}
12+
runs-on: ${{ matrix.platform.os }}
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
platform:
18+
- { name: Windows VS2022, os: windows-2022 }
19+
- { name: Linux GCC, os: ubuntu-latest }
20+
- { name: Linux Clang, os: ubuntu-latest, flags: -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ }
21+
- { name: macOS, os: macos-latest }
22+
config:
23+
- { name: Shared, flags: -DBUILD_SHARED_LIBS=TRUE }
24+
- { name: Static, flags: -DBUILD_SHARED_LIBS=FALSE }
25+
26+
steps:
27+
- name: Install Linux Dependencies
28+
if: runner.os == 'Linux'
29+
run: sudo apt-get update && sudo apt-get install libxrandr-dev libxcursor-dev libxi-dev libudev-dev libflac-dev libvorbis-dev libgl1-mesa-dev libegl1-mesa-dev libfreetype-dev
30+
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
34+
- name: Configure
35+
run: cmake -B build ${{matrix.platform.flags}} ${{matrix.config.flags}}
36+
37+
- name: Build
38+
run: cmake --build build --config Release

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
build
2+
out
3+
.cache
4+
.idea
5+
.vs
6+
.vscode

CMakeLists.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
cmake_minimum_required(VERSION 3.28)
2+
project(ScreenTimerProject LANGUAGES CXX)
3+
4+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
5+
6+
include(FetchContent)
7+
FetchContent_Declare(SFML
8+
GIT_REPOSITORY https://github.com/SFML/SFML.git
9+
GIT_TAG 3.0.2
10+
GIT_SHALLOW ON
11+
EXCLUDE_FROM_ALL
12+
SYSTEM)
13+
FetchContent_MakeAvailable(SFML)
14+
15+
add_executable(ScreenTimer
16+
17+
gui/UIElement/uiElement.cpp
18+
gui/TextBox/textBox.cpp
19+
gui/MouseHandle/mouseHandle.cpp
20+
gui/LabelElement/labelElement.cpp
21+
22+
src/RenderHandler/renderHandler.cpp
23+
src/main.cpp
24+
25+
extlibs/tinyfiledialogs/tinyfiledialogs.cpp)
26+
target_compile_features(ScreenTimer PRIVATE cxx_std_17)
27+
target_link_libraries(ScreenTimer PRIVATE SFML::Graphics)

0 commit comments

Comments
 (0)