Skip to content

Commit

Permalink
Modify CMake commands to install into svZeroDSolver. (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbolt authored Oct 13, 2024
1 parent ad67a5a commit e3d4baa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions distribution/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,19 @@ if(ENABLE_DISTRIBUTION)
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION}")

# define install location
set(CPACK_PACKAGING_INSTALL_PREFIX "/usr/local/sv/ZeroDSolver/${CPACK_PACKAGE_VERSION}")
set(CPACK_PACKAGING_INSTALL_PREFIX "/usr/local/sv/svZeroDSolver/${CPACK_PACKAGE_VERSION}")

# define install target within build folder
set(CPACK_OUTPUT_FILE_PREFIX ${CMAKE_BINARY_DIR}/distribution)

if(APPLE)
set(CPACK_GENERATOR "productbuild")
elseif(LINUX)
endif()

if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(CPACK_GENERATOR DEB)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "")
endif(APPLE)
endif()

# create the installer for both solver and calibrator
install(TARGETS svzerodsolver svzerodcalibrator
Expand Down

0 comments on commit e3d4baa

Please sign in to comment.