-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
74 lines (64 loc) · 1.8 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
cmake_minimum_required(VERSION 3.8)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/KotlinCMakeModule)
project(godot-kotlin Kotlin)
#konanc_library_search(SDL2 SDL2/SDL.h)
#if (APPLE)
# set(SDL2_LINKER_OPTS "-F /Library/Frameworks -framework SDL2")
# set(KOTRIX_TARGET macbook)
#elseif (UNIX)
# set(SDL2_LINKER_OPTS "-L${SDL2_LIBRARY_DIR} -lSDL2")
# set(KOTRIX_TARGET linux)
#else ()
# message(FATAL_ERROR Windows is not supported.)
#endif ()
#konanc_library_search(godotapi gdnative/aabb.h
#gdnative/array.h
#gdnative/basis.h
#gdnative/color.h
#gdnative/dictionary.h
#gdnative/gdnative.h
#gdnative/node_path.h
#gdnative/plane.h
#gdnative/pool_arrays.h
#gdnative/quat.h
#gdnative/rect2.h
#gdnative/rid.h
#gdnative/string.h
#gdnative/string_name.h
#gdnative/transform.h
#gdnative/transform2d.h
#gdnative/variant.h
#gdnative/vector2.h
#gdnative/vector3.h
#arvr/godot_arvr.h
#nativescript/godot_nativescript.h
#pluginscript/godot_pluginscript.h)
#konanc_library(godotapi)
#klib(godotapi)
cinterop(
NAME godotapi
DEF_FILE src/main/c_interop/godotapi.def
COMPILER_OPTS "-I${CMAKE_CURRENT_LIST_DIR}/godot_headers"
# COMPILER_OPTS "-I ${GODOTAPI_INCLUDE_DIR}"
)
#cinterop(
# NAME godotapi
# TARGET ${GODOT_TARGET}
# DEF_FILE src/main/c_interop/godotapi.def
# COMPILER_OPTS "-I ${GODOTAPI_INCLUDE_DIR}"
#)
konanc_library(
NAME godot
SOURCES src/main/kotlin
LIBRARIES godotapi
)
#konanc_executable(
# NAME godot
# TARGET ${GODOT_TARGET}
# SOURCES src/main/kotlin/
# LIBRARIES godotapi
# LINKER_OPTS "${GODOTAPI_LINKER_OPTS}"
#)
#add_custom_command(TARGET godot.kexe
# PRE_BUILD
# COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/src/main/resources ${CMAKE_CURRENT_BINARY_DIR})