Skip to content

Commit

Permalink
CMake format
Browse files Browse the repository at this point in the history
  • Loading branch information
marip8 committed Jan 5, 2022
1 parent aac287e commit 4d238be
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions tesseract_common/cmake/tesseract_macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -158,22 +158,29 @@ macro(tesseract_cpack)
set(DEB_ARCH ${CMAKE_SYSTEM_PROCESSOR})
endif()

set(CPACK_PACKAGE_FILE_NAME
"${TESSERACT_PACKAGE_PREFIX}${TESSERACT_PACKAGE_NAME}_${DEB_ARCH}_linux_${ARG_VERSION}")
set(CPACK_PACKAGE_FILE_NAME "${TESSERACT_PACKAGE_PREFIX}${TESSERACT_PACKAGE_NAME}_${DEB_ARCH}_linux_${ARG_VERSION}")
set(CPACK_DEBIAN_PACKAGE_NAME "${TESSERACT_PACKAGE_PREFIX}${TESSERACT_PACKAGE_NAME}")
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${DEB_ARCH})
set(CPACK_DEBIAN_PACKAGE_MAINTAINER ${ARG_MAINTAINER})
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION ${ARG_DESCRIPTION})
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS=ON)
string(REPLACE ";" "," CPACK_DEBIAN_PACKAGE_DEPENDS "${ARG_LINUX_DEPENDS}")
string(
REPLACE ";"
","
CPACK_DEBIAN_PACKAGE_DEPENDS
"${ARG_LINUX_DEPENDS}")
elseif(WIN32)
set(CPACK_GENERATOR "NuGet;TXZ")
set(CPACK_PACKAGE_FILE_NAME
"${TESSERACT_PACKAGE_PREFIX}${TESSERACT_PACKAGE_NAME}_${CMAKE_SYSTEM_PROCESSOR}_windows_${ARG_VERSION}")
set(CPACK_NUGET_PACKAGE_NAME
"${TESSERACT_PACKAGE_PREFIX}${TESSERACT_PACKAGE_NAME}_${CMAKE_SYSTEM_PROCESSOR}_windows")
set(CPACK_NUGET_PACKAGE_DESCRIPTION ${ARG_DESCRIPTION})
string(REPLACE ";" "," CPACK_NUGET_PACKAGE_DEPENDENCIES "${ARG_WINDOWS_DEPENDS}")
string(
REPLACE ";"
","
CPACK_NUGET_PACKAGE_DEPENDENCIES
"${ARG_WINDOWS_DEPENDS}")
endif()
include(CPack)
endmacro()

0 comments on commit 4d238be

Please sign in to comment.