Skip to content

Commit

Permalink
Prepared release.
Browse files Browse the repository at this point in the history
XaverKlemenschits committed May 5, 2020
1 parent dab6214 commit 69b34a7
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -2,7 +2,9 @@ cmake_minimum_required(VERSION 3.4)

project(
"ViennaLS"
VERSION 1.0.0)
VERSION 1.1.1)

add_definitions(-DVIENNALS_VERSION=${PROJECT_VERSION})

include(GNUInstallDirs)

3 changes: 2 additions & 1 deletion Wrapping/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
cmake_minimum_required(VERSION 3.4)

# lowercase viennaLS is the python export
project(ViennaLSPython)
project("ViennaLSPython"
VERSION ${CMAKE_PROJECT_VERSION})

# include viennals
set(ViennaHRLE_DIR $ENV{VIENNAHRLE_DIR})
8 changes: 7 additions & 1 deletion Wrapping/pyWrap.cpp
Original file line number Diff line number Diff line change
@@ -10,6 +10,9 @@
#define TOKENPASTE_INTERNAL(x, y, z) x##y##z
#define TOKENPASTE(x, y, z) TOKENPASTE_INTERNAL(x, y, z)
#define VIENNALS_MODULE_NAME TOKENPASTE(viennaLS, VIENNALS_PYTHON_DIMENSION, d)
#define STRINGIZE2(s) #s
#define STRINGIZE(s) STRINGIZE2(s)
#define VIENNALS_MODULE_VERSION STRINGIZE(VIENNALS_VERSION)

#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
@@ -89,7 +92,7 @@ class PylsFastAdvectDistribution : public lsFastAdvectDistribution<T, D> {
}
};

// REFERNCE HOLDING CLASS WRAPPERS
// REFERENCE HOLDING CLASS WRAPPERS

// maybe needed wrapper code once we move to smart pointers
// https://github.com/pybind/pybind11/issues/1389
@@ -109,6 +112,9 @@ class PylsFastAdvectDistribution : public lsFastAdvectDistribution<T, D> {
PYBIND11_MODULE(VIENNALS_MODULE_NAME, module) {
module.doc() = "ViennaLS python module.";

// set version string of python module
module.attr("__version__") = VIENNALS_MODULE_VERSION;

// lsAdvect
pybind11::class_<lsAdvect<T, D>>(module, "lsAdvect")
// constructors

0 comments on commit 69b34a7

Please sign in to comment.