Skip to content

Commit

Permalink
res
Browse files Browse the repository at this point in the history
  • Loading branch information
dxli committed Sep 9, 2023
1 parent aa291c3 commit 0b13170
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ if(EXISTS "${CMAKE_SOURCE_DIR}/conan_toolchain.cmake")
SET(CPACK_NSIS_INSTALLED_ICON_NAME "${CMAKE_SOURCE_DIR}/res/librecad.ico")
SET(CPACK_NSIS_PACKAGE_NAME "LibreCAD3")
set(CPACK_CREATE_DESKTOP_LINKS "LibreCAD3")
set(CPACK_PACKAGE_EXECUTABLES "librecad.exe;LibreCAD3")
set(CPACK_PACKAGE_EXECUTABLES "librecad;LibreCAD3")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "LibreCAD3")
set(CPACK_PACKAGE_NAME "LibreCAD3")
set(CPACK_INSTALL_CMAKE_PROJECTS "build/bin/Release;LibreCAD3;ALL;/")
set(CPACK_INSTALL_CMAKE_PROJECTS "build/bin;LibreCAD3;ALL;/")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
file(COPY "${CMAKE_SOURCE_DIR}/LICENSE" DESTINATION "${FINAL_INSTALL_DIR}")
include(CPack)
Expand Down
4 changes: 2 additions & 2 deletions lckernel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ project(LCKERNEL)
#TODO: Fix this
set(PATTERN_RESOURCE_PATH ${CMAKE_SOURCE_DIR}/res/hatch)
if (MSVC)
install(DIRECTORY "${PATTERN_RESOURCE_PATH}"
DESTINATION "${FINAL_INSTALL_DIR}/res" )
install(DIRECTORY "${PATTERN_RESOURCE_PATH}" TYPE DATA
DESTINATION } "res" )
else()
install(DIRECTORY "${PATTERN_RESOURCE_PATH}"
DESTINATION "${FINAL_INSTALL_DIR}/usr/share/librecad" )
Expand Down
3 changes: 2 additions & 1 deletion scripts/windows-install/buildLibrecadAndCreatePackage.bat
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ dir

WinDeployQt librecad.exe
dir ..
copy ..\*.lua ..\*.json .
copy ..\*.lua
copy ..\*.json
where makensis.exe
dir ..\..\CPack*.cmake

Expand Down

0 comments on commit 0b13170

Please sign in to comment.