b37814204f
* get image returns optional<Mat> instead of unique_ptr<Mat> * introduce complexity * rename image load function * add example for a basic reader for binary image files * fix windows build? * add a status bar underneath the menu bar * use status bar in custom_0 example app * clang formats * packing w/ pragma push * add "Save As" functions to image views * resize over reserve * rm local override uri * add simple thread pool * rename to simple_thread_pool * get rid of useless renderlib * document version inc * extract hardcoded values to in-header * clang format patch * clone registered image in custom_0 * document binary-file header * minor fixes * clang format * rm unused render cmake
69 lines
1.8 KiB
CMake
69 lines
1.8 KiB
CMake
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/app_resources_default.h.in
|
|
${CMAKE_BINARY_DIR}/app_resources_default.h @ONLY)
|
|
|
|
set(APPLIBSRC
|
|
AppGLFW.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)
|
|
|
|
set(RENDERSRC
|
|
rendering/RenderHelpers.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/PixelariumImageViewDefault.cpp
|
|
rendering/PixelariumImageViewCzi.hpp
|
|
rendering/PixelariumImageViewCzi.cpp
|
|
rendering/ImageViewFactory.hpp
|
|
rendering/ImageViewFactory.cpp)
|
|
|
|
set(APPLIBNAME pixelariumapplicationlib)
|
|
|
|
add_library(${APPLIBNAME}
|
|
STATIC ${APPLIBSRC} ${RENDERSRC})
|
|
|
|
target_link_libraries(${APPLIBNAME}
|
|
PRIVATE pixelariumutilslib
|
|
PRIVATE pixelariumimagelib)
|
|
|
|
# This needs to be public to let the consumer know about it.
|
|
if(WIN32)
|
|
target_link_libraries(${APPLIBNAME}
|
|
PUBLIC opengl32.lib
|
|
PUBLIC glfw
|
|
PUBLIC OpenGL::GL)
|
|
endif()
|
|
if(LINUX)
|
|
target_link_libraries(${APPLIBNAME}
|
|
PUBLIC glfw GL)
|
|
endif()
|
|
if(APPLE)
|
|
target_link_libraries(${APPLIBNAME}
|
|
PUBLIC glfw
|
|
PUBLIC "-framework OpenGL")
|
|
endif()
|
|
|
|
target_include_directories(${APPLIBNAME}
|
|
PRIVATE ${CMAKE_BINARY_DIR}
|
|
PRIVATE ${PROJECT_SOURCE_DIR}/lib
|
|
PRIVATE ${PROJECT_SOURCE_DIR}/lib/imaging
|
|
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/rendering
|
|
PUBLIC ${pfd_DIR}
|
|
PUBLIC ${imgui_DIR}
|
|
PUBLIC ${imgui_DIR}/backends)
|