mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
tools build requirements
This commit is contained in:
parent
c2b347af7c
commit
f691188f74
3 changed files with 10 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
#include "platform/platform.h"
|
#include "platform/platform.h"
|
||||||
#include "navigation/navMeshTool.h"
|
#include "navigation/navMeshTool.h"
|
||||||
|
#ifdef TORQUE_TOOLS
|
||||||
#include "util/undo.h"
|
#include "util/undo.h"
|
||||||
#include "math/mMath.h"
|
#include "math/mMath.h"
|
||||||
#include "math/mathUtils.h"
|
#include "math/mathUtils.h"
|
||||||
|
|
@ -37,3 +37,4 @@ NavMeshTool::NavMeshTool()
|
||||||
NavMeshTool::~NavMeshTool()
|
NavMeshTool::~NavMeshTool()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#ifndef _NAVMESH_TOOL_H_
|
#ifndef _NAVMESH_TOOL_H_
|
||||||
#define _NAVMESH_TOOL_H_
|
#define _NAVMESH_TOOL_H_
|
||||||
|
#ifdef TORQUE_TOOLS
|
||||||
#ifndef _SIMBASE_H_
|
#ifndef _SIMBASE_H_
|
||||||
#include "console/simBase.h"
|
#include "console/simBase.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -54,5 +54,5 @@ public:
|
||||||
virtual void onUndoAction() {}
|
virtual void onUndoAction() {}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
#endif // !_NAVMESH_TOOL_H_
|
#endif // !_NAVMESH_TOOL_H_
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,15 @@ option(TORQUE_NAVIGATION "Enable Navigation module" ON)
|
||||||
if(TORQUE_NAVIGATION)
|
if(TORQUE_NAVIGATION)
|
||||||
message("Enabling Navigation Module")
|
message("Enabling Navigation Module")
|
||||||
|
|
||||||
file(GLOB_RECURSE TORQUE_NAV_SOURCES "${CMAKE_SOURCE_DIR}/Engine/source/navigation/*.cpp" "${CMAKE_SOURCE_DIR}/Engine/source/navigation/*.h" "${CMAKE_SOURCE_DIR}/Engine/source/navigation/navMeshTools/*.cpp" "${CMAKE_SOURCE_DIR}/Engine/source/navigation/navMeshTools/*.h")
|
file(GLOB TORQUE_NAV_SOURCES "${CMAKE_SOURCE_DIR}/Engine/source/navigation/*.cpp" "${CMAKE_SOURCE_DIR}/Engine/source/navigation/*.h")
|
||||||
set(TORQUE_SOURCE_FILES ${TORQUE_SOURCE_FILES} ${TORQUE_NAV_SOURCES})
|
if(TORQUE_TOOLS)
|
||||||
|
file(GLOB_RECURSE TORQUE_NAV_TOOLS "${CMAKE_SOURCE_DIR}/Engine/source/navigation/navMeshTools/*.cpp" "${CMAKE_SOURCE_DIR}/Engine/source/navigation/navMeshTools/*.h")
|
||||||
|
endif()
|
||||||
|
set(TORQUE_SOURCE_FILES ${TORQUE_SOURCE_FILES} ${TORQUE_NAV_SOURCES} ${TORQUE_NAV_TOOLS})
|
||||||
set(TORQUE_LINK_LIBRARIES ${TORQUE_LINK_LIBRARIES} recast)
|
set(TORQUE_LINK_LIBRARIES ${TORQUE_LINK_LIBRARIES} recast)
|
||||||
set(TORQUE_COMPILE_DEFINITIONS ${TORQUE_COMPILE_DEFINITIONS} recast TORQUE_NAVIGATION_ENABLED)
|
set(TORQUE_COMPILE_DEFINITIONS ${TORQUE_COMPILE_DEFINITIONS} recast TORQUE_NAVIGATION_ENABLED)
|
||||||
|
|
||||||
# Since recast lives elsewhere we need to ensure it is known to Torque when providing a link to it
|
# Since recast lives elsewhere we need to ensure it is known to Torque when providing a link to it
|
||||||
add_subdirectory("${TORQUE_LIB_ROOT_DIRECTORY}/recast" ${TORQUE_LIB_TARG_DIRECTORY}/recast EXCLUDE_FROM_ALL)
|
add_subdirectory("${TORQUE_LIB_ROOT_DIRECTORY}/recast" ${TORQUE_LIB_TARG_DIRECTORY}/recast EXCLUDE_FROM_ALL)
|
||||||
source_group(TREE "${CMAKE_SOURCE_DIR}/Engine/source/navigation/" PREFIX "Modules/NAVIGATION" FILES ${TORQUE_NAV_SOURCES})
|
source_group(TREE "${CMAKE_SOURCE_DIR}/Engine/source/navigation/" PREFIX "Modules/NAVIGATION" FILES ${TORQUE_NAV_SOURCES} ${TORQUE_NAV_TOOLS})
|
||||||
endif(TORQUE_NAVIGATION)
|
endif(TORQUE_NAVIGATION)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue