JuliaInterop / libcxxwrap-julia

C++ library for backing CxxWrap.jl
Other
85 stars 43 forks source link

Propose FindJulia.cmake to upstream cmake #28

Open termoshtt opened 5 years ago

termoshtt commented 5 years ago

Hi team,

I try to use cmake for linking libjulia.so, and I need find_package for Julia. FindJulia.cmake in this repository is latest and well managed as far as I searched. Do you have a plan to propose this script to the official cmake repository? It will be useful for other Julia users trying to use it from another language e.g. Fortran.

Thanks.

traversaro commented 5 years ago

A possible alternative option (if there is someone willing to maintain it) is to install a JuliaConfig.cmake configuration file with Julia itself. Even if Julia is not built with CMake, it is possible nevertheless to generate a JuliaConfig.cmake file, see for example libxml2:

barche commented 5 years ago

Yes, I think adding a JuliaConfig.cmake file would be the way to go. The best solution is to convert Julia to using CMake, but that's slightly more involved ;)

SylvainCorlay commented 5 years ago

Yes, it would be great if Julia moved to CMake.