build(cmake): adjust installation paths on Windows
Some checks are pending
Build / ubuntu (push) Waiting to run
Build / windows (push) Waiting to run
Build / container (push) Waiting to run
Build / appimage (push) Waiting to run

This commit is contained in:
k4yt3x 2025-01-10 16:19:34 -05:00
parent 49ce40b05f
commit 55556e60a1
2 changed files with 11 additions and 5 deletions

View File

@ -28,6 +28,10 @@ build:
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX={{bindir}}/video2x-install \ -DCMAKE_INSTALL_PREFIX={{bindir}}/video2x-install \
-DCMAKE_INSTALL_BINDIR="." \
-DCMAKE_INSTALL_LIBDIR="." \
-DCMAKE_INSTALL_INCLUDEDIR=include \
-DCMAKE_INSTALL_DATADIR="." \
-DVIDEO2X_USE_EXTERNAL_NCNN=OFF \ -DVIDEO2X_USE_EXTERNAL_NCNN=OFF \
-DVIDEO2X_USE_EXTERNAL_SPDLOG=OFF \ -DVIDEO2X_USE_EXTERNAL_SPDLOG=OFF \
-DVIDEO2X_USE_EXTERNAL_BOOST=OFF -DVIDEO2X_USE_EXTERNAL_BOOST=OFF

View File

@ -367,12 +367,14 @@ install(FILES
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/Video2X" DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/Video2X"
) )
# Install model files # Install the model files
install(DIRECTORY "${CMAKE_SOURCE_DIR}/models" if(WIN32)
DESTINATION "${CMAKE_INSTALL_DATADIR}/video2x" install(DIRECTORY "${CMAKE_SOURCE_DIR}/models" DESTINATION "${CMAKE_INSTALL_DATADIR}")
) else()
install(DIRECTORY "${CMAKE_SOURCE_DIR}/models" DESTINATION "${CMAKE_INSTALL_DATADIR}/video2x")
endif()
# Platform-specific installation rules # Install the FFmpeg and ncnn shared libraries
if(WIN32) if(WIN32)
file(GLOB ffmpeg_dlls "${ffmpeg_base_path}/bin/*.dll") file(GLOB ffmpeg_dlls "${ffmpeg_base_path}/bin/*.dll")
install(FILES ${ffmpeg_dlls} DESTINATION "${CMAKE_INSTALL_BINDIR}") install(FILES ${ffmpeg_dlls} DESTINATION "${CMAKE_INSTALL_BINDIR}")