Files
m-aXimilian c00c2c71ac
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
build system and module refactoring + simple histogram scratch (#20)
* 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
2026-02-16 20:36:48 +01:00

46 lines
1.2 KiB
CMake

include(libCZI)
find_package(OpenCV REQUIRED)
message(STATUS "Found opencv: " ${OpenCV_INCLUDE_DIRS})
message(STATUS "OpenCV_LIBs from: " ${OpenCV_LIBS})
set(IMAGELIBSRC
include/IPixelariumImage.hpp
include/PixelariumImageFactory.hpp
impl/include/PixelariumJpg.hpp
impl/include/PixelariumPng.hpp
impl/include/PixelariumCzi.hpp
impl/include/PixelariumTiff.hpp
impl/include/PixelariumMem.hpp
IPixelariumImage.cpp
PixelariumImageFactory.cpp
impl/PixelariumJpg.cpp
impl/PixelariumPng.cpp
impl/PixelariumCzi.cpp
impl/PixelariumTiff.cpp
impl/PixelariumMem.cpp
)
set(IMAGELIBLIBNAME pixelariumimagelib)
add_library(${IMAGELIBLIBNAME}
STATIC ${IMAGELIBSRC})
add_library(pixelarium::lib::imaging_static ALIAS ${IMAGELIBLIBNAME})
target_compile_definitions(${IMAGELIBLIBNAME} PUBLIC _LIBCZISTATICLIB)
target_link_libraries(${IMAGELIBLIBNAME}
PUBLIC ${OpenCV_LIBS}
PUBLIC pixelarium::lib::utilities_static
PRIVATE libCZIStatic)
target_include_directories(${IMAGELIBLIBNAME}
INTERFACE
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/impl/include
PUBLIC ${OpenCV_INCLUDE_DIRS}
PUBLIC ${LIBCZI_INCLUDE_DIR})