Skip to content

Commit ce71e4d

Browse files
committed
Add gradle task to start example
1 parent bc1a590 commit ce71e4d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

imgui-lwjgl3/build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ dependencies {
2121
implementation project(':imgui-binding')
2222
}
2323

24-
24+
task startExample(type: JavaExec, dependsOn: build) {
25+
main = 'ImGuiGlfwExample'
26+
classpath = sourceSets.test.runtimeClasspath
27+
jvmArgs = ['-Djava.library.path=../bin', '-Dimgui.library.name=imgui-java64', '-Dorg.lwjgl.librarypath=./lwjgl-libs']
28+
}
2529

2630
task sourcesJar(type: Jar, dependsOn: classes) {
2731
archiveClassifier.set('sources')

0 commit comments

Comments
 (0)