Skip to content

Commit

Permalink
Lemon as meson subproject
Browse files Browse the repository at this point in the history
  • Loading branch information
robtaylor authored and Coloquinte committed Sep 20, 2023
1 parent 29341ab commit b09555e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "thirdparty/pybind11/pybind11"]
path = thirdparty/pybind11/pybind11
url = https://github.com/pybind/pybind11.git
[submodule "subprojects/lemon-1.3.1"]
path = subprojects/lemon-1.3.1
url = https://github.com/Coloquinte/lemon
7 changes: 6 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ project('coloquinte', 'cpp',

coloquinte_includes = include_directories('src')
boost_dep = dependency('boost', required: true)
lemon_dep = dependency('lemon', method : 'cmake')
eigen_dep = dependency('eigen3', required: true)
thread_dep = dependency('threads', required: true)

cmake =import('cmake')
cmake_opts = cmake.subproject_options()
cmake_opts.add_cmake_defines({'CMAKE_POSITION_INDEPENDENT_CODE': true})
lemon = cmake.subproject('lemon-1.3.1', options: cmake_opts)
lemon_dep = lemon.dependency('lemon')

sources = [
'src/coloquinte.cpp',
'src/parameters.cpp',
Expand Down
1 change: 1 addition & 0 deletions subprojects/lemon-1.3.1
Submodule lemon-1.3.1 added at 502526

0 comments on commit b09555e

Please sign in to comment.