mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-28 00:29:34 +00:00
* Feature: Begin working the new engine module system.
This commit is contained in:
parent
9901fa76b4
commit
dfc03da9d9
10 changed files with 133 additions and 28 deletions
14
Tools/CMake/modules/navigation.cmake
Normal file
14
Tools/CMake/modules/navigation.cmake
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Navigation module
|
||||
option(TORQUE_NAVIGATION "Enable Navigation module" ON)
|
||||
|
||||
if(TORQUE_NAVIGATION)
|
||||
message("Enabling Navigation Module")
|
||||
|
||||
file(GLOB TORQUE_NAVIGATION_SOURCES "${CMAKE_SOURCE_DIR}/Engine/source/navigation/*.cpp")
|
||||
set(TORQUE_SOURCE_FILES ${TORQUE_SOURCE_FILES} ${TORQUE_NAVIGATION_SOURCES})
|
||||
set(TORQUE_LINK_LIBRARIES ${TORQUE_LINK_LIBRARIES} recast)
|
||||
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
|
||||
add_subdirectory("${CMAKE_SOURCE_DIR}/Engine/lib/recast" ${CMAKE_BINARY_DIR}/temp/recast EXCLUDE_FROM_ALL)
|
||||
endif(TORQUE_NAVIGATION)
|
||||
Loading…
Add table
Add a link
Reference in a new issue