30 lines
729 B
Plaintext
30 lines
729 B
Plaintext
plugins {
|
|
kotlin("multiplatform")
|
|
}
|
|
kotlin {
|
|
jvm()
|
|
val nativeTarget = if(System.getProperty("os.arch") == "aarch64") {
|
|
linuxArm64("native")
|
|
} else {
|
|
linuxX64("native")
|
|
}
|
|
nativeTarget.binaries {
|
|
executable()
|
|
}
|
|
sourceSets {
|
|
nativeMain.dependencies {
|
|
implementation(project(":libplt"))
|
|
}
|
|
nativeTest.dependencies {
|
|
implementation(project(":libplt"))
|
|
implementation(kotlin("test"))
|
|
}
|
|
jvmMain.dependencies {
|
|
implementation(project(":libplt"))
|
|
}
|
|
jvmTest.dependencies {
|
|
implementation(project(":libplt"))
|
|
implementation(kotlin("test"))
|
|
}
|
|
}
|
|
} |