From b617a48d18c6585c86c13199c619ed00ca284028 Mon Sep 17 00:00:00 2001 From: paulbourelly999 Date: Tue, 21 Jan 2025 13:00:45 -0500 Subject: [PATCH] Update to add CMake CREATE_DEB_PACKAGE --- scripts/build_script.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/build_script.sh b/scripts/build_script.sh index 3cae05c..cb28235 100755 --- a/scripts/build_script.sh +++ b/scripts/build_script.sh @@ -62,9 +62,15 @@ if [ $GENERATE_COVERAGE -eq 1 ]; then COVERAGE_FLAGS=-DGENERATE_COVERAGE=True fi -cmake -B${BUILD_DIR} ${TOOLCHAIN_ARG} -DCMAKE_CXX_FLAGS="${CXXFLAGS}" -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" ${PACKAGE_VERSION_SUFFIX} ${COVERAGE_FLAGS} "${cmake_options[@]}" -cd ${BUILD_DIR} -cmake --build . if [ $GENERATE_DEBIAN_PACKAGE -eq 1 ]; then + cmake -B"${BUILD_DIR}" "${TOOLCHAIN_ARG}" -DCMAKE_CXX_FLAGS="${CXXFLAGS}" -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" -DCREATE_DEB_PACKAGE=ON "${PACKAGE_VERSION_SUFFIX}" "${COVERAGE_FLAGS}" "${cmake_options[@]}" + cd "${BUILD_DIR}" + cmake --build . + cpack -G DEB +else + cmake -B"${BUILD_DIR}" "${TOOLCHAIN_ARG}" -DCMAKE_CXX_FLAGS="${CXXFLAGS}" -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" "${PACKAGE_VERSION_SUFFIX}" "${COVERAGE_FLAGS}" "${cmake_options[@]}" + cd "${BUILD_DIR}" + cmake --build . cpack -G DEB fi +