Skip to content
Snippets Groups Projects

Build with GNU Makefile

Merged Mark Meredith requested to merge (removed):gnumakefile into main
Files
2
+ 36
4
@@ -24,7 +24,10 @@ build-img:
needs: ['build-img']
script:
- conan install -if build -g cmake_find_package catch2/2.13.7@
- if [ "$ENABLE_CSG" == "ON" ]; then conan install -if build -g cmake_find_package cgal/5.2.1@; fi
- |
if [ "$ENABLE_CGAL" == "ON" ]; then
conan install -if build -g cmake_find_package cgal/5.2.1@
fi
- conan install -if build -g cmake_find_package taocpp-pegtl/3.2.1@
- cmake -S.
@@ -32,7 +35,7 @@ build-img:
-GNinja
-DCMAKE_MODULE_PATH=$PWD/build
-DCMAKE_BUILD_TYPE=Debug
-DCSG_CGAL_ENABLED=${ENABLE_CSG}
-DCSG_CGAL_ENABLED=${ENABLE_CGAL}
- cmake --build build --target unit_tests_csg
- cd build
- ctest
@@ -41,12 +44,12 @@ build-img:
test:cgal:
variables:
ENABLE_CSG: "ON"
ENABLE_CGAL: "ON"
<<: *cmake_def
test:no_cgal:
variables:
ENABLE_CSG: "OFF"
ENABLE_CGAL: "OFF"
<<: *cmake_def
.test:spack: &spack_def
@@ -69,3 +72,32 @@ spack:no_cgal:
variables:
NO_CSG: "~cgal"
<<: *spack_def
.test:gnumake: &gnumake_def
stage: test
variables:
BUILD: ${CI_PROJECT_DIR}/build
BOOST_HOME: ${BUILD}/boost
CATCH2_HOME: ${BUILD}/catch2
CGAL_HOME: ${BUILD}/cgal
PEGTL_HOME: ${BUILD}/taocpp-pegtl
image: $CI_REGISTRY_IMAGE:latest
needs: ['build-img']
script:
- conan install -if build -g deploy catch2/2.13.7@
- |
if [ "$ENABLE_CGAL" == "ON" ]; then
conan install -if build -g deploy cgal/5.2.1@
fi
- conan install -if build -g deploy taocpp-pegtl/3.2.1@
- make install DESTDIR=the_destination
tags:
- docker
gnumake:cgal:
variables:
ENABLE_CGAL: "ON"
<<: *gnumake_def
gnumake:no_cgal:
<<: *gnumake_def
Loading