mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 02:39:48 -06:00
add_jar: add option GENERATE_NATIVE_HEADERS
This commit is contained in:
19
Tests/JavaNativeHeaders/D.java
Normal file
19
Tests/JavaNativeHeaders/D.java
Normal file
@@ -0,0 +1,19 @@
|
||||
class D
|
||||
{
|
||||
public D()
|
||||
{
|
||||
}
|
||||
|
||||
public native void printName();
|
||||
|
||||
static {
|
||||
try {
|
||||
|
||||
System.loadLibrary("D");
|
||||
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
System.err.println("Native code library failed to load.\n" + e);
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user