-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
17 lines (17 loc) · 911 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cmake_minimum_required(VERSION 3.2)
project(KAIMyEntitySaba VERSION 2.0)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
find_package(Bullet REQUIRED)
find_package(JNI REQUIRED)
include_directories(${JAVA_INCLUDE_PATH})
include_directories(${JAVA_INCLUDE_PATH2})
include_directories(${BULLET_INCLUDE_DIRS})
include_directories(${PROJECT_SOURCE_DIR}/saba/external/tinyobjloader/include)
include_directories(${PROJECT_SOURCE_DIR}/saba/external/tinyxfileloader/include)
include_directories(${PROJECT_SOURCE_DIR}/saba/src)
include_directories(${PROJECT_SOURCE_DIR}/saba/external/spdlog/include)
include_directories(${PROJECT_SOURCE_DIR}/saba/external/glm/include)
include_directories(${PROJECT_SOURCE_DIR}/saba/external/stb/include)
add_subdirectory(saba/src)
add_library(KAIMyEntitySaba SHARED com_kAIS_KAIMyEntity_NativeFunc.cpp KAIMyEntitySaba.cpp)
target_link_libraries(KAIMyEntitySaba PRIVATE ${BULLET_LIBRARIES} Saba)