2024-04-19 12:48:12 +00:00
|
|
|
cmake_minimum_required(VERSION 3.22)
|
|
|
|
project(godot-recast-navigation)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 23)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
|
|
|
2024-06-04 13:46:31 +00:00
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
|
2024-04-19 12:48:12 +00:00
|
|
|
add_subdirectory(godot-cpp)
|
2024-06-04 13:46:31 +00:00
|
|
|
add_subdirectory(recastnavigation)
|
2024-04-19 12:48:12 +00:00
|
|
|
|
2024-06-04 13:46:31 +00:00
|
|
|
add_library(godot-recast-navigation SHARED
|
|
|
|
src/registration.cpp
|
|
|
|
src/RecastNavMesh.cpp
|
|
|
|
)
|
2024-04-19 12:48:12 +00:00
|
|
|
|
|
|
|
target_include_directories(godot-recast-navigation PRIVATE src/)
|
2024-06-04 13:46:31 +00:00
|
|
|
target_link_libraries(godot-recast-navigation PUBLIC godot::cpp Recast)
|