-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
46 lines (34 loc) · 1.34 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
cmake_minimum_required( VERSION 3.0 )
project(ViZDoomJavaExamples)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
find_package(Java REQUIRED)
include(UseJava)
set(VIZDOOM_JAVA_EXAMPLES_OUTPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../bin/examples )
set(CMAKE_JAVA_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../bin/java/vizdoom.jar)
#set(CMAKE_JAVA_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../vizdoom_api_bindings/java)
add_jar(basic Basic.java
ENTRY_POINT Basic
OUTPUT_DIR ${VIZDOOM_JAVA_EXAMPLES_OUTPUT_DIR})
add_jar(cig CIG.java
ENTRY_POINT CIG
OUTPUT_DIR ${VIZDOOM_JAVA_EXAMPLES_OUTPUT_DIR})
add_jar(cigbots CIGBots.java
ENTRY_POINT CIGBots
OUTPUT_DIR ${VIZDOOM_JAVA_EXAMPLES_OUTPUT_DIR})
add_jar(cighost CIGHost.java
ENTRY_POINT CIGHost
OUTPUT_DIR ${VIZDOOM_JAVA_EXAMPLES_OUTPUT_DIR})
add_jar(deltabuttons DeltaButtons.java
ENTRY_POINT DeltaButtons
OUTPUT_DIR ${VIZDOOM_JAVA_EXAMPLES_OUTPUT_DIR})
add_jar(seed Seed.java
ENTRY_POINT Seed
OUTPUT_DIR ${VIZDOOM_JAVA_EXAMPLES_OUTPUT_DIR})
add_jar(shaping Shaping.java
ENTRY_POINT Shaping
OUTPUT_DIR ${VIZDOOM_JAVA_EXAMPLES_OUTPUT_DIR})
add_jar(spectator Spectator.java
ENTRY_POINT Spectator
OUTPUT_DIR ${VIZDOOM_JAVA_EXAMPLES_OUTPUT_DIR})