From 2d669e64110869829f027016e7d5445258114d55 Mon Sep 17 00:00:00 2001 From: Sara Date: Sun, 26 Oct 2025 14:27:30 +0100 Subject: [PATCH] feat: initialized project --- CMakeLists.txt | 8 +- asset-src/dice_icons.svg | 180 +++++++++++++++++++++++++++++++++++++++ assets/icons/d10.svg | 18 ++++ assets/icons/d12.svg | 19 +++++ assets/icons/d2.svg | 19 +++++ assets/icons/d20.svg | 19 +++++ assets/icons/d4.svg | 19 +++++ assets/icons/d6.svg | 22 +++++ assets/icons/d8.svg | 19 +++++ justfile | 4 +- 10 files changed, 321 insertions(+), 6 deletions(-) create mode 100644 asset-src/dice_icons.svg create mode 100644 assets/icons/d10.svg create mode 100644 assets/icons/d12.svg create mode 100644 assets/icons/d2.svg create mode 100644 assets/icons/d20.svg create mode 100644 assets/icons/d4.svg create mode 100644 assets/icons/d6.svg create mode 100644 assets/icons/d8.svg diff --git a/CMakeLists.txt b/CMakeLists.txt index 9340897..3130a7f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.21) -project(CHANGEME) +project(dice-gui) set(CMAKE_BINARY_DIR "${CMAKE_SOURCE_DIR}/bin") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") @@ -15,11 +15,11 @@ add_subdirectory(vendor/SDL3/ EXCLUDE_FROM_ALL) set(SDLTTF_VENDORED ON) add_subdirectory(vendor/SDL3_ttf/ EXCLUDE_FROM_ALL) -add_executable(CHANGEME ${source_files}) -target_link_libraries(CHANGEME PRIVATE SDL3_ttf::SDL3_ttf SDL3::SDL3) +add_executable(dice-gui ${source_files}) +target_link_libraries(dice-gui PRIVATE SDL3_ttf::SDL3_ttf SDL3::SDL3) add_custom_target(copy_assets COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/assets/ ${CMAKE_BINARY_DIR}/assets ) -add_dependencies(CHANGEME copy_assets) +add_dependencies(dice-gui copy_assets) diff --git a/asset-src/dice_icons.svg b/asset-src/dice_icons.svg new file mode 100644 index 0000000..2987abc --- /dev/null +++ b/asset-src/dice_icons.svg @@ -0,0 +1,180 @@ + + + + diff --git a/assets/icons/d10.svg b/assets/icons/d10.svg new file mode 100644 index 0000000..d151e8d --- /dev/null +++ b/assets/icons/d10.svg @@ -0,0 +1,18 @@ + + + + diff --git a/assets/icons/d12.svg b/assets/icons/d12.svg new file mode 100644 index 0000000..4028926 --- /dev/null +++ b/assets/icons/d12.svg @@ -0,0 +1,19 @@ + + + + diff --git a/assets/icons/d2.svg b/assets/icons/d2.svg new file mode 100644 index 0000000..9d90323 --- /dev/null +++ b/assets/icons/d2.svg @@ -0,0 +1,19 @@ + + + + diff --git a/assets/icons/d20.svg b/assets/icons/d20.svg new file mode 100644 index 0000000..df1a4cd --- /dev/null +++ b/assets/icons/d20.svg @@ -0,0 +1,19 @@ + + + + diff --git a/assets/icons/d4.svg b/assets/icons/d4.svg new file mode 100644 index 0000000..feed6a9 --- /dev/null +++ b/assets/icons/d4.svg @@ -0,0 +1,19 @@ + + + + diff --git a/assets/icons/d6.svg b/assets/icons/d6.svg new file mode 100644 index 0000000..3324024 --- /dev/null +++ b/assets/icons/d6.svg @@ -0,0 +1,22 @@ + + + + diff --git a/assets/icons/d8.svg b/assets/icons/d8.svg new file mode 100644 index 0000000..722aca5 --- /dev/null +++ b/assets/icons/d8.svg @@ -0,0 +1,19 @@ + + + + diff --git a/justfile b/justfile index a106e4d..7c23837 100644 --- a/justfile +++ b/justfile @@ -3,7 +3,7 @@ build: cmake --build build run: - cd bin/ && CHANGEME + cd bin/ && dice-gui configure: # CONFIGURING WITH PREMAKE @@ -16,4 +16,4 @@ clean: set-project-name projectname: clean git remote set-url origin "" - sed -i "s/CHANGEME/{{projectname}}/g" ./CMakeLists.txt ./justfile + sed -i "s/dice-gui/{{projectname}}/g" ./CMakeLists.txt ./justfile