Wyatt Kennedy
07/09/2023, 5:53 AMWyatt Kennedy
07/10/2023, 4:53 AMkotlin {
mingwX64()
linuxX64()
targets.withType<KotlinNativeTarget> {
kotlinsOptions {
freeCompilerArgs = listof("-include-binary", dirToStaticLib)
}
}
}
, then any project including this as a dependency will statically link to that library. This way cinterop doesn't choke on the missing lib, and you can add tasks to your project to build your cmake lib. Note, those tasks should depend on the processResourcesTaskName of your compilations.