Developing file operation dialogs.

This commit is contained in:
2025-07-08 21:50:41 -05:00
parent 5d404ea079
commit 932af3e3ce
7 changed files with 127 additions and 68 deletions

View File

@@ -1,7 +1,9 @@
cmake_minimum_required(VERSION 3.18..3.27)
project(Redacted2DLevelLibrary
VERSION 1.2
project(Redacted2D
DESCRIPTION "A C++ Project for "
HOMEPAGE_URL https://git.redacted.cc/josh/Editor2D
VERSION 1.2.0
LANGUAGES CXX)
if (PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)
@@ -12,16 +14,18 @@ set(CMAKE_BUILD_PARALLEL_LEVEL 8)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
# Enable package managers
include(cmake/CPM.cmake)
file(GLOB_RECURSE FORMAT_HEADERS "include/Format/*.hpp")
file(GLOB_RECURSE FORMAT_SRC "src/Format/*.cpp" "src/Re2DLevelAPI.cpp")
file(GLOB_RECURSE EDITOR_SRC "src/Editor/*.cpp")
file(GLOB_RECURSE MISC_SRC "src/SimpleAABBSolver.cpp" "src/Re2DLevelAPI.cpp")
file(GLOB_RECURSE FORMAT_HEADERS "include/Format/*.hpp" ${MISC_SRC})
file(GLOB_RECURSE FORMAT_SRC "src/Format/*.cpp" ${MISC_SRC})
file(GLOB_RECURSE EDITOR_SRC "src/Editor/*.cpp" ${MISC_SRC})
file(GLOB_RECURSE DEMOGAME_HEADERS "include/DemoGame/*.hpp")
file(GLOB_RECURSE DEMOGAME_SRC "src/DemoGame/*.cpp")
@@ -50,7 +54,7 @@ CPMAddPackage(NAME JGL
URL https://git.redacted.cc/josh/JGL/archive/Prerelease-58.zip)
CPMAddPackage(NAME JUI
URL https://git.redacted.cc/josh/ReJUI/archive/Prerelease-6.4.zip)
URL https://git.redacted.cc/josh/ReJUI/archive/Prerelease-6.6.zip)
if (UNIX)
@@ -104,9 +108,15 @@ file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/assets/"
add_executable(EditorApp apps/editor.cpp app.rc)
target_link_libraries(EditorApp PUBLIC Editor)
add_executable(DemoGame apps/game.cpp)
target_link_libraries(DemoGame PUBLIC LevelFormat)
add_executable(DemoGame apps/game.cpp ${DEMOGAME_SRC})
target_link_libraries(DemoGame PUBLIC LevelFormat jlog ReWindow JGL JUI mcolor)
target_include_directories(DemoGame PUBLIC
${jlog_SOURCE_DIR}/include
${ReWindow_SOURCE_DIR}/include
${JGL_SOURCE_DIR}/include
${JUI_SOURCE_DIR}/include
${mcolor_SOURCE_DIR}/include
)
add_executable(level_format_tests apps/tests.cpp)
target_link_libraries(level_format_tests PUBLIC LevelFormat)