Clemapfel / jluna

Julia Wrapper for C++ with Focus on Safety, Elegance, and Ease of Use
https://clemens-cords.com/jluna
MIT License
244 stars 12 forks source link

Export jluna as CMake targets #8

Closed melonedo closed 2 years ago

melonedo commented 2 years ago

Exporting these targets may greatly simply the process of using this library, as shown in docs/installation.md. Also, since this library targets "modern"ness, modern CMake does not encourage the use of global functions like include_directories or global variables like CMAKE_CXX_STANDARD, so I replaced them with ones that can propagate between targets. As for lstdc++, it should not be needed if you set CMAKE_CXX_COMPILER to clang++ instead of clang. Also fix #6.

Clemapfel commented 2 years ago

Thank you! it does simplify it a lot. I'm not very good at cmake, so I appreciate the help.