2025-08-18 22:39:43 +00:00
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/app_resources_default.h.in
|
|
|
|
|
${CMAKE_BINARY_DIR}/app_resources_default.h @ONLY)
|
|
|
|
|
|
|
|
|
|
set(APPLIBSRC
|
2025-09-23 21:57:08 +02:00
|
|
|
AppGLFW.hpp
|
2025-08-18 22:39:43 +00:00
|
|
|
AppGLFW.cpp
|
2025-09-23 21:57:08 +02:00
|
|
|
DefaultApp.hpp
|
2025-09-22 23:13:28 +02:00
|
|
|
DefaultApp.cpp
|
2025-10-11 01:29:33 +02:00
|
|
|
PixelariumGallery.hpp
|
|
|
|
|
PixelariumGallery.cpp
|
2025-08-18 22:39:43 +00:00
|
|
|
${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)
|
|
|
|
|
|
2026-01-23 23:00:35 +00:00
|
|
|
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)
|
|
|
|
|
|
2025-08-18 22:39:43 +00:00
|
|
|
set(APPLIBNAME pixelariumapplicationlib)
|
|
|
|
|
|
|
|
|
|
add_library(${APPLIBNAME}
|
2026-01-23 23:00:35 +00:00
|
|
|
STATIC ${APPLIBSRC} ${RENDERSRC})
|
2025-08-18 22:39:43 +00:00
|
|
|
|
|
|
|
|
target_link_libraries(${APPLIBNAME}
|
2025-09-22 23:13:28 +02:00
|
|
|
PRIVATE pixelariumutilslib
|
2026-01-23 23:00:35 +00:00
|
|
|
PRIVATE pixelariumimagelib)
|
2025-08-18 22:39:43 +00:00
|
|
|
|
|
|
|
|
# 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
|
2025-09-22 23:13:28 +02:00
|
|
|
PRIVATE ${PROJECT_SOURCE_DIR}/lib/imaging
|
2026-01-23 23:00:35 +00:00
|
|
|
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/rendering
|
2025-09-22 23:13:28 +02:00
|
|
|
PUBLIC ${pfd_DIR}
|
2025-08-18 22:39:43 +00:00
|
|
|
PUBLIC ${imgui_DIR}
|
|
|
|
|
PUBLIC ${imgui_DIR}/backends)
|