mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Treat them as errors globally. Most of the time a warning is a bug, or problem in code that could be solved in a different (better) manner. Thirdparty code have this disabled. The warnings as errors option can be globally disabled through the CMake GUI, but this is not recommended.
114 lines
2.3 KiB
CMake
114 lines
2.3 KiB
CMake
cmake_minimum_required( VERSION 3.16 )
|
|
add_module( "exe" "naveditor" "" ${FOLDER_CONTEXT} 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( "game/bin/" )
|
|
whole_program_optimization()
|
|
|
|
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"
|
|
)
|