build system and module refactoring + simple histogram scratch (#20)
MegaLinter / MegaLinter (push) Has been cancelled
CI Workflow / build-ubuntu (push) Has been cancelled
CI Workflow / build-windows (push) Has been cancelled
CI Workflow / generate-docs (push) Has been cancelled

* scratch adding histogram to image views

Histograms should come from some sort of histogram service. This is
currently just a POC.

* custom logger implementation w/o spdlog

* missing cmake file

* fix tests

* use operator<< over direct stream exposure

* rm print header

* add threading test + refactor towards interface libraries

omits the need for =target_include_directories= calls /everywhere/

* rm print header

* rm constexpr

* templated thread_pool

* fix doxyfile

* default enable doc building

* czi reader refactor

* rm erroneous include expression

* clang-format

* single lib include with PUBLIC visibility

* compile imgui stdlib

* clang format

* documentation update

centralize `LogLevelToString` to `ILog.hpp`

update docs and examples
This commit is contained in:
m-aXimilian
2026-02-08 12:09:02 +01:00
committed by Maximilian Kueffner
parent b37814204f
commit c00c2c71ac
60 changed files with 797 additions and 416 deletions
+48 -26
View File
@@ -1,45 +1,65 @@
# Fetch implot
include(implot)
message(STATUS "IMPLOT sources at ${IMPLOT_DIR}")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/app_resources_default.h.in
${CMAKE_BINARY_DIR}/app_resources_default.h @ONLY)
set(IMPLOTSRC
"${IMPLOT_DIR}/implot.h"
"${IMPLOT_DIR}/implot_internal.h"
"${IMPLOT_DIR}/implot_items.cpp"
"${IMPLOT_DIR}/implot.cpp"
"${IMPLOT_DIR}/implot_demo.cpp"
)
set(IMGUISRC
"${imgui_DIR}/imgui.cpp"
"${imgui_DIR}/misc/cpp/imgui_stdlib.cpp"
"${imgui_DIR}/imgui_demo.cpp"
"${imgui_DIR}/imgui_draw.cpp"
"${imgui_DIR}/imgui_tables.cpp"
"${imgui_DIR}/imgui_widgets.cpp"
"${imgui_DIR}/backends/imgui_impl_opengl3.cpp"
"${imgui_DIR}/backends/imgui_impl_glfw.cpp")
set(APPLIBSRC
AppGLFW.hpp
include/imgui_proxy.hpp
include/AppGLFW.hpp
include/DefaultApp.hpp
include/PixelariumGallery.hpp
AppGLFW.cpp
DefaultApp.hpp
DefaultApp.cpp
PixelariumGallery.hpp
PixelariumGallery.cpp
${imgui_DIR}/imgui.cpp
${imgui_DIR}/imgui_demo.cpp
${imgui_DIR}/imgui_draw.cpp
${imgui_DIR}/imgui_tables.cpp
${imgui_DIR}/imgui_widgets.cpp
${imgui_DIR}/backends/imgui_impl_opengl3.cpp
${imgui_DIR}/backends/imgui_impl_glfw.cpp)
PixelariumGallery.cpp)
set(RENDERSRC
rendering/RenderHelpers.hpp
rendering/include/RenderHelpers.hpp
rendering/include/RenderImageManager.hpp
rendering/include/CvMatRender.hpp
rendering/include/IPixelariumImageView.hpp
rendering/include/PixelariumImageViewDefault.hpp
rendering/include/PixelariumImageViewCzi.hpp
rendering/include/ImageViewFactory.hpp
rendering/RenderHelpers.cpp
rendering/CvMatRender.hpp
rendering/CvMatRender.cpp
rendering/RenderImageManager.hpp
rendering/RenderImageManager.cpp
rendering/IPixelariumImageView.hpp
rendering/IPixelariumImageView.cpp
rendering/PixelariumImageViewDefault.hpp
rendering/RenderImageManager.cpp
rendering/PixelariumImageViewDefault.cpp
rendering/PixelariumImageViewCzi.hpp
rendering/PixelariumImageViewCzi.cpp
rendering/ImageViewFactory.hpp
rendering/ImageViewFactory.cpp)
set(APPLIBNAME pixelariumapplicationlib)
add_library(${APPLIBNAME}
STATIC ${APPLIBSRC} ${RENDERSRC})
STATIC ${APPLIBSRC} ${IMGUISRC} ${IMPLOTSRC} ${RENDERSRC})
add_library(pixelarium::lib::application_static ALIAS ${APPLIBNAME})
target_link_libraries(${APPLIBNAME}
PRIVATE pixelariumutilslib
PRIVATE pixelariumimagelib)
PUBLIC
pixelarium::lib::utilities_static
pixelarium::lib::imaging_static
pixelarium::lib::resources_static)
# This needs to be public to let the consumer know about it.
if(WIN32)
@@ -59,10 +79,12 @@ if(APPLE)
endif()
target_include_directories(${APPLIBNAME}
INTERFACE
PRIVATE ${CMAKE_BINARY_DIR}
PRIVATE ${PROJECT_SOURCE_DIR}/lib
PRIVATE ${PROJECT_SOURCE_DIR}/lib/imaging
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/rendering
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/rendering/include
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include
PUBLIC ${pfd_DIR}
PUBLIC ${imgui_DIR}
PUBLIC ${imgui_DIR}/backends)
PUBLIC ${imgui_DIR}/misc/cpp
PUBLIC ${imgui_DIR}/backends
${IMPLOT_DIR})