cmake: Update pom.xml

This commit is contained in:
Mizux Seiha
2020-04-16 11:53:26 +02:00
parent 3223b97649
commit 400a8638e6
2 changed files with 45 additions and 19 deletions

View File

@@ -84,9 +84,14 @@ endforeach()
####################
## Java package ##
####################
file(GENERATE
OUTPUT java/pom.xml
INPUT ortools/java/pom.xml.in)
file(GENERATE OUTPUT java/pom.xml
CONTENT
"FILE(READ ${PROJECT_SOURCE_DIR}/ortools/java/pom.xml.in input)
STRING(REPLACE \"@PROJECT_VERSION@\" \"${PROJECT_VERSION}\" input \"\${input}\")
STRING(REPLACE \"@ortools@\" \"$<TARGET_FILE:${PROJECT_NAME}>\" input \"\${input}\")
STRING(REPLACE \"@native@\" \"$<TARGET_FILE:jniortools>\" input \"\${input}\")
FILE(WRITE java/pom.xml \"\${input}\")"
)
# Main Target
add_custom_target(java_package ALL