Skip to content

Commit

Permalink
Update to add CMake CREATE_DEB_PACKAGE
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbourelly999 committed Jan 21, 2025
1 parent b67b60b commit b617a48
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions scripts/build_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b617a48

Please sign in to comment.