2022-03-19 18:08:28 +01:00
|
|
|
cmake_minimum_required(VERSION 3.9.4)
|
2013-11-24 06:36:16 +01:00
|
|
|
project(launcher Java)
|
2021-12-19 19:11:08 +01:00
|
|
|
find_package(Java 1.7 REQUIRED COMPONENTS Development)
|
2013-11-24 06:36:16 +01:00
|
|
|
|
|
|
|
include(UseJava)
|
|
|
|
set(CMAKE_JAVA_JAR_ENTRY_POINT JavaCheck)
|
2022-06-12 17:46:40 +01:00
|
|
|
set(CMAKE_JAVA_COMPILE_FLAGS -target 7 -source 7 -Xlint:deprecation -Xlint:unchecked)
|
2013-11-24 06:36:16 +01:00
|
|
|
|
|
|
|
set(SRC
|
2018-07-15 14:51:05 +02:00
|
|
|
JavaCheck.java
|
2013-11-24 06:36:16 +01:00
|
|
|
)
|
|
|
|
|
2014-01-08 01:27:40 +01:00
|
|
|
add_jar(JavaCheck ${SRC})
|
2018-01-22 04:28:07 +01:00
|
|
|
install_jar(JavaCheck "${JARS_DEST_DIR}")
|