mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
119 lines
2.5 KiB
CMake
119 lines
2.5 KiB
CMake
cmake_minimum_required( VERSION 3.16 )
|
|
add_module( "exe" "recast" "" ${FOLDER_CONTEXT} TRUE TRUE )
|
|
|
|
start_sources()
|
|
|
|
add_sources( SOURCE_GROUP "Builder"
|
|
"Editor_TileMesh.cpp"
|
|
"InputGeom.cpp"
|
|
)
|
|
|
|
add_sources( SOURCE_GROUP "Builder/Include"
|
|
"include/Editor_TileMesh.h"
|
|
"include/InputGeom.h"
|
|
)
|
|
|
|
add_sources( SOURCE_GROUP "Contrib"
|
|
"imgui.cpp"
|
|
"imguiRenderGL.cpp"
|
|
)
|
|
|
|
add_sources( SOURCE_GROUP "Contrib/Include"
|
|
"include/imgui.h"
|
|
"include/imguiRenderGL.h"
|
|
)
|
|
|
|
add_sources( SOURCE_GROUP "Core"
|
|
"Editor.cpp"
|
|
"main.cpp"
|
|
"../thirdparty/recast/Pch.cpp"
|
|
)
|
|
|
|
add_sources( SOURCE_GROUP "Core/Include"
|
|
"include/Editor.h"
|
|
"../thirdparty/recast/Pch.h"
|
|
)
|
|
|
|
add_sources( SOURCE_GROUP "IO"
|
|
"Filelist.cpp"
|
|
"MeshLoaderBsp.cpp"
|
|
"MeshLoaderObj.cpp"
|
|
"MeshLoaderPly.cpp"
|
|
)
|
|
|
|
add_sources( SOURCE_GROUP "IO/Include"
|
|
"include/Filelist.h"
|
|
"include/FileTypes.h"
|
|
"include/MeshLoaderBsp.h"
|
|
"include/MeshLoaderObj.h"
|
|
"include/MeshLoaderPly.h"
|
|
)
|
|
|
|
add_sources( SOURCE_GROUP "Tools"
|
|
"ChunkyTriMesh.cpp"
|
|
"ConvexVolumeTool.cpp"
|
|
"CrowdTool.cpp"
|
|
"NavMeshPruneTool.cpp"
|
|
"NavMeshTesterTool.cpp"
|
|
"OffMeshConnectionTool.cpp"
|
|
)
|
|
|
|
add_sources( SOURCE_GROUP "Tools/Include"
|
|
"include/ChunkyTriMesh.h"
|
|
"include/ConvexVolumeTool.h"
|
|
"include/CrowdTool.h"
|
|
"include/NavMeshPruneTool.h"
|
|
"include/NavMeshTesterTool.h"
|
|
"include/OffMeshConnectionTool.h"
|
|
)
|
|
|
|
add_sources( SOURCE_GROUP "Utils"
|
|
"Editor_Debug.cpp"
|
|
"EditorInterfaces.cpp"
|
|
"GameUtils.cpp"
|
|
"PerfTimer.cpp"
|
|
"TestCase.cpp"
|
|
"ValueHistory.cpp"
|
|
)
|
|
|
|
add_sources( SOURCE_GROUP "Utils/Include"
|
|
"include/Editor_Debug.h"
|
|
"include/EditorInterfaces.h"
|
|
"include/GameUtils.h"
|
|
"include/PerfTimer.h"
|
|
"include/TestCase.h"
|
|
"include/ValueHistory.h"
|
|
)
|
|
|
|
end_sources( "${BUILD_OUTPUT_DIR}/bin/" )
|
|
whole_program_optimization()
|
|
|
|
set_target_properties( ${PROJECT_NAME} PROPERTIES
|
|
VS_DEBUGGER_COMMAND "naveditor.exe"
|
|
VS_DEBUGGER_COMMAND_ARGUMENTS "-console"
|
|
VS_DEBUGGER_WORKING_DIRECTORY "$(ProjectDir)../../../${BUILD_OUTPUT_DIR}/bin/"
|
|
)
|
|
target_compile_definitions( ${PROJECT_NAME} PRIVATE
|
|
"WIN32"
|
|
)
|
|
target_precompile_headers( ${PROJECT_NAME} PRIVATE
|
|
"${ENGINE_SOURCE_DIR}/thirdparty/recast/Pch.h"
|
|
)
|
|
target_link_libraries( ${PROJECT_NAME} PRIVATE
|
|
"navdebugutils"
|
|
"libsdl2"
|
|
"libdetour"
|
|
"libdetourcrowd"
|
|
"libdetourtilecache"
|
|
"librecast"
|
|
"FastLZ"
|
|
"Rpcrt4.lib"
|
|
"ws2_32.lib"
|
|
"winmm.lib"
|
|
"imm32.lib"
|
|
"version.lib"
|
|
"setupapi.lib"
|
|
"OpenGL32.lib"
|
|
"Glu32.lib"
|
|
)
|