Merge pull request #22 from MattiaMontanari/ce

Set version in cmake and remove old CI
fixes-turtlebasket
Mattia Montanari 2022-07-09 23:39:39 +02:00 committed by GitHub
commit 1988a4e2d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 29 deletions

View File

@ -1,23 +0,0 @@
name: C/C++ CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install python moduels
run: sudo apt update && sudo apt install -y libeigen3-dev python3-setuptools && pip3 install pybind11 pytest numpy scipy cython
- name: Compile Bybind
run: export CPATH=/usr/include/eigen3 && cd examples/python && source build.sh
- name: Test Bybind
run: |
cd examples/python
python3 -m pytest -s -v test.py
- name: Run cython
run: |
cd examples/cython
python3 setup.py build_ext --inplace && python3 -m pytest -s -v test.py

View File

@ -22,15 +22,17 @@
cmake_minimum_required(VERSION 2.8)
cmake_policy(SET CMP0048 NEW)
cmake_policy(SET CMP0079 NEW)
option(BUILD_EXAMPLE "Build demo" ON)
set(GK_VERSION_MAJOR 3)
set(GK_VERSION_MINOR 0)
set(GK_VERSION_PATCH 0)
project(lib_opengjk_ce
LANGUAGES C
VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}
DESCRIPTION "openGJK library"
HOMEPAGE_URL "https://mattiamontanari.com/opengjk"
DESCRIPTION "openGJK library community edition (CE)"
HOMEPAGE_URL "www.mattiamontanari.com/opengjk/"
VERSION ${GK_VERSION_MAJOR}.${GK_VERSION_MINOR}.${GK_VERSION_PATCH}
)
set( C_STANDARD 99)