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-30 16:47:53 +00:00
|
|
|
target_link_libraries(godot-recast-navigation PUBLIC godot::cpp Recast Detour)
|
2024-06-08 13:03:04 +00:00
|
|
|
target_link_options(godot-recast-navigation PRIVATE -Wl,--no-undefined)
|