ui ini header

This commit is contained in:
Kueffner, Maximilian
2025-03-13 18:58:00 +01:00
parent 4dbf4f8716
commit 0a34052c2a
4 changed files with 17 additions and 2 deletions
+4 -1
View File
@@ -37,6 +37,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/bin/Release)
add_subdirectory(${pfd_DIR}) add_subdirectory(${pfd_DIR})
add_subdirectory(${spdlog_DIR}) add_subdirectory(${spdlog_DIR})
add_subdirectory(${glfw_DIR}) add_subdirectory(${glfw_DIR})
add_subdirectory(src)
set(SRC set(SRC
src/AppGLFW.cpp src/AppGLFW.cpp
@@ -61,7 +62,9 @@ target_include_directories(${PROJECT_NAME}
PUBLIC ${imgui_DIR}/backends PUBLIC ${imgui_DIR}/backends
PUBLIC ${glfw_INCLUDE_DIR} PUBLIC ${glfw_INCLUDE_DIR}
PUBLIC ${pfd_DIR} PUBLIC ${pfd_DIR}
PUBLIC ${LIBCZI_INCLUDE_DIR}) PUBLIC ${LIBCZI_INCLUDE_DIR}
PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
if(WIN32) if(WIN32)
target_link_libraries(${PROJECT_NAME} target_link_libraries(${PROJECT_NAME}
+2 -1
View File
@@ -1,6 +1,7 @@
#include "AppGLFW.hpp" #include "AppGLFW.hpp"
#include "portable-file-dialogs.h" #include "portable-file-dialogs.h"
#include "uiresources.h"
ui::AppGLFW::AppGLFW() ui::AppGLFW::AppGLFW()
{ {
@@ -48,7 +49,7 @@ ui::AppGLFW::AppGLFW()
// " screen heigth " + std::to_string(height)); // " screen heigth " + std::to_string(height));
// Create window with graphics context // Create window with graphics context
window = glfwCreateWindow(1200, 800, "pixelarium", nullptr, nullptr); window = glfwCreateWindow(1200, 800, PIXELARIUM_TITLE, nullptr, nullptr);
if (window == nullptr) if (window == nullptr)
{ {
// lg::Logger::Error("no window"); // lg::Logger::Error("no window");
+6
View File
@@ -0,0 +1,6 @@
set(PIXELARIUM_TITLE ${CMAKE_PROJECT_NAME})
message(STATUS "Configuring Resources")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/uiresources.h.in
${CMAKE_BINARY_DIR}/uiresources.h @ONLY)
+5
View File
@@ -0,0 +1,5 @@
#pragma once
/*-- Gets filled in during the cmake configuration step --*/
#cmakedefine PIXELARIUM_TITLE "@PIXELARIUM_TITLE@"