google / jni-bind

JNI Bind is a set of advanced syntactic sugar for writing efficient correct JNI Code in C++17 (and up).
Apache License 2.0
244 stars 29 forks source link

Add cmake module file #240

Closed paulocoutinhox closed 7 months ago

paulocoutinhox commented 8 months ago

Hi,

Can you add cmake module file to be used with FetchContent.

It let us work with it inside cmake using CPM, for example: https://github.com/cpm-cmake/CPM.cmake

Or FetchContent directly: https://cmake.org/cmake/help/latest/module/FetchContent.html

It is simple, check some tutorials:

Thanks.

jwhpryor commented 8 months ago

With apologies, I'm afraid if you want this you may need to be the one to contribute it. Unfortunately I have absolutely no Cmake skills, so while it may seem short, it will be quite long for me.

Also, I would need to ensure the Github actions are correctly configured to test for it to ensure no lapses in progressions.

I know many folks use Cmake, but sadly, I simply don't have the resources to tackle this.