1ea83d9d11
* add dimension selector sliders to czi view * version doc & version bump * cosmetic * fix build? * multi-dimension selection enabled in czi view * remove the parameterized reset function of the renderer it is not and is conceptually questionable doc updates & some minor improvements auto-update CZI-view when sliders are moved set initial window size fix windows build and msvc build For reasons I don not comprehend, on Windows, we must include =opencv2/core/mat.hpp= as the very last header in the =CvMatRender.hpp=. If this is at any other position building on Windows, compilation will break w/ all kinds of cryptic errors regarding OpenCV. When building w/ msvc =__PRETTY_FUNCTION__= is not defined. =ILog.hpp= now defines it. This should be revised to only be set when the compiler is msvc. For the time being, it is considered sufficient though.
35 lines
800 B
CMake
35 lines
800 B
CMake
include(${CMAKE_SOURCE_DIR}/cmake/libCZI.cmake)
|
|
|
|
find_package(OpenCV REQUIRED)
|
|
|
|
message(STATUS "Found opencv: " ${OpenCV_INCLUDE_DIRS})
|
|
message(STATUS "OpenCV_LIBs from: " ${OpenCV_LIBS})
|
|
|
|
set(IMAGELIBSRC
|
|
IPixelariumImage.hpp
|
|
PixelariumImageFactory.hpp
|
|
PixelariumImageFactory.cpp
|
|
impl/PixelariumJpg.hpp
|
|
impl/PixelariumJpg.cpp
|
|
impl/PixelariumPng.hpp
|
|
impl/PixelariumPng.cpp
|
|
impl/PixelariumCzi.hpp
|
|
impl/PixelariumCzi.cpp
|
|
)
|
|
|
|
set(IMAGELIBLIBNAME pixelariumimagelib)
|
|
|
|
add_library(${IMAGELIBLIBNAME}
|
|
STATIC ${IMAGELIBSRC})
|
|
|
|
target_link_libraries(${IMAGELIBLIBNAME}
|
|
PUBLIC ${OpenCV_LIBS}
|
|
PUBLIC pixelariumutilslib
|
|
PRIVATE libCZIStatic)
|
|
|
|
|
|
target_include_directories(${IMAGELIBLIBNAME}
|
|
PRIVATE ${CMAKE_SOURCE_DIR}/lib
|
|
PUBLIC ${OpenCV_INCLUDE_DIRS}
|
|
PUBLIC ${LIBCZI_INCLUDE_DIR})
|