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) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) add_subdirectory(godot-cpp) add_subdirectory(recastnavigation) add_library(godot-recast-navigation SHARED src/registration.cpp src/RecastNavMesh.cpp ) target_include_directories(godot-recast-navigation PRIVATE src/) target_link_libraries(godot-recast-navigation PUBLIC godot::cpp Recast Detour) target_link_options(godot-recast-navigation PRIVATE -Wl,--no-undefined)