refactor: rename binary and artifacts to negative-converter

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Christoph K.
2026-03-15 09:54:47 +01:00
parent 4e4e19e80d
commit 93c19df257
5 changed files with 38 additions and 38 deletions

View File

@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.20)
project(photo-converter
project(negative-converter
VERSION 0.1.0
DESCRIPTION "Analog film negative to digital positive converter"
LANGUAGES CXX
@@ -95,40 +95,40 @@ target_compile_options(converter_core PRIVATE
# Main executable
# ──────────────────────────────────────────────
if(BUILD_GUI)
qt_add_executable(photo-converter
qt_add_executable(negative-converter
src/main.cpp
src/gui/MainWindow.cpp
src/gui/MainWindow.h
)
target_link_libraries(photo-converter PRIVATE
target_link_libraries(negative-converter PRIVATE
converter_core
Qt6::Widgets
)
target_include_directories(photo-converter PRIVATE
target_include_directories(negative-converter PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/src
)
else()
# CLI-only build (no Qt)
add_executable(photo-converter
add_executable(negative-converter
src/main.cpp
)
target_link_libraries(photo-converter PRIVATE
target_link_libraries(negative-converter PRIVATE
converter_core
)
target_compile_definitions(photo-converter PRIVATE NO_GUI=1)
target_compile_definitions(negative-converter PRIVATE NO_GUI=1)
target_include_directories(photo-converter PRIVATE
target_include_directories(negative-converter PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/src
)
endif()
# Windows: link against winsock / windows socket libraries needed by OpenCV
if(PHOTOCONV_WINDOWS)
target_link_libraries(photo-converter PRIVATE ws2_32)
target_link_libraries(negative-converter PRIVATE ws2_32)
endif()
# ──────────────────────────────────────────────
@@ -136,7 +136,7 @@ endif()
# ──────────────────────────────────────────────
include(GNUInstallDirs)
install(TARGETS photo-converter
install(TARGETS negative-converter
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
@@ -148,25 +148,25 @@ install(FILES config.ini
# ──────────────────────────────────────────────
# CPack packaging
# ──────────────────────────────────────────────
set(CPACK_PACKAGE_NAME "photo-converter")
set(CPACK_PACKAGE_VENDOR "photo-converter project")
set(CPACK_PACKAGE_NAME "negative-converter")
set(CPACK_PACKAGE_VENDOR "negative-converter project")
set(CPACK_PACKAGE_DESCRIPTION_SHORT "${PROJECT_DESCRIPTION}")
set(CPACK_PACKAGE_VERSION "${PROJECT_VERSION}")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "photo-converter")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "negative-converter")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE" )
if(PHOTOCONV_WINDOWS)
# NSIS installer for Windows
set(CPACK_GENERATOR "NSIS;ZIP")
set(CPACK_NSIS_DISPLAY_NAME "Photo Converter ${PROJECT_VERSION}")
set(CPACK_NSIS_PACKAGE_NAME "photo-converter")
set(CPACK_NSIS_PACKAGE_NAME "negative-converter")
set(CPACK_NSIS_MODIFY_PATH ON)
set(CPACK_NSIS_MUI_ICON "${CMAKE_CURRENT_SOURCE_DIR}/assets/icon.ico")
set(CPACK_NSIS_MUI_UNIICON "${CMAKE_CURRENT_SOURCE_DIR}/assets/icon.ico")
else()
# TGZ + DEB for Linux / ZIP for macOS
set(CPACK_GENERATOR "TGZ;DEB")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "photo-converter project")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "negative-converter project")
set(CPACK_DEBIAN_PACKAGE_DEPENDS
"libopencv-core4.10 | libopencv4-java, libraw23, libqt6widgets6")
endif()