# Help needed for packaging a C++ wrapper with CxxWrap

**URL:** <https://discourse.julialang.org/t/help-needed-for-packaging-a-c-wrapper-with-cxxwrap/41591>\
**Category:** General Usage\
**Tags:** cxx\
**Created:** [June 17, 2020, 1:01pm UTC](https://discourse.julialang.org/t/help-needed-for-packaging-a-c-wrapper-with-cxxwrap/41591 "2020-06-17T13:01:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cstich](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cstich/32/18665_2.png) [@cstich](https://discourse.julialang.org/u/cstich)\
**Post date:** [June 17, 2020, 1:01pm UTC](https://discourse.julialang.org/t/help-needed-for-packaging-a-c-wrapper-with-cxxwrap/41591/1 "2020-06-17T13:01:37Z")

</div>

I have written a Julia wrapper for a [C++ library](https://github.com/PythonOT/POT/tree/master/ot/lp) using `CxxWrapper` . I don’t have much experience with C++ but I managed to compile everything with `cmake` into a shared library and I can call the function I want from within Julia.

My question is now how do I package everything so that people can just install the package? Do I dump the build recipe into `builds.jl`? How do I make sure that `cmake` finds `jlcxx/jlcxx.hpp`? The instructions for `CxxWrap` say to use `-DCMAKE_PREFIX_PATH` but that seems a bit cumbersome. Is there an automated way for `cmake` to find `jlcxx/jlcxx.hpp`?
