-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pedestrian Nav Example Ported from FLAMEGPU 1
Visualisation is limited to features of native FLAMEGPU 2 visualiser, and hence (currently) lacks the ability to: * Hide a subset of agents in the same state (in this case navmap arrows with no force) * Control environment properties via UI elements * Control visualisation of agents via UI elements
- Loading branch information
Showing
4 changed files
with
1,442,430 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Minimum CMake version 3.18 for CUDA --std=c++17 | ||
cmake_minimum_required(VERSION VERSION 3.18 FATAL_ERROR) | ||
|
||
# Name the project and set languages | ||
project(pedestrian_navigation CUDA CXX) | ||
|
||
# Set the location of the ROOT flame gpu project relative to this CMakeList.txt | ||
get_filename_component(FLAMEGPU_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../.. REALPATH) | ||
|
||
# Include common rules. | ||
include(${FLAMEGPU_ROOT}/cmake/common.cmake) | ||
|
||
# Define output location of binary files | ||
if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) | ||
# If top level project | ||
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE}/) | ||
else() | ||
# If called via add_subdirectory() | ||
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/../../bin/${CMAKE_BUILD_TYPE}/) | ||
endif() | ||
|
||
# Prepare list of source files | ||
# Can't do this automatically, as CMake wouldn't know when to regen (as CMakeLists.txt would be unchanged) | ||
SET(ALL_SRC | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/main.cu | ||
) | ||
|
||
# Option to enable/disable building the static library | ||
option(VISUALISATION "Enable visualisation support" ON) | ||
|
||
# Add the executable and set required flags for the target | ||
add_flamegpu_executable("${PROJECT_NAME}" "${ALL_SRC}" "${FLAMEGPU_ROOT}" "${PROJECT_BINARY_DIR}" TRUE) | ||
|
||
# Also set as startup project (if top level project) | ||
set_property(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" PROPERTY VS_STARTUP_PROJECT "${PROJECT_NAME}") | ||
|
||
# Set the default (visual studio) debugger configure_file | ||
set_target_properties("${PROJECT_NAME}" PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" | ||
VS_DEBUGGER_COMMAND_ARGUMENTS "-i map.xml -s 200") |
Oops, something went wrong.