-
Notifications
You must be signed in to change notification settings - Fork 1
Release/0.5.0 #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Release/0.5.0 #18
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
c949794
Deadend returns negative distance instead of 0 (#14)
heavenfall d089a9c
Feature/offline (#15)
heavenfall 377753d
Feature/jump enhancement (#16)
heavenfall c2d0363
update jps to warthog-core v0.5.0, added new module system (#17)
heavenfall a5895e4
update to 0.5.0 version
heavenfall d8ad8d8
update readme with compile
heavenfall 308049b
Release/pr 0.5.0 (#20)
heavenfall 50ac14c
updated cmake headers list
heavenfall 0cc5d40
fixed markdown table
heavenfall 416af70
Release/0.5.0 pr2 (#21)
heavenfall 9d9c638
fixed than/then gramma
heavenfall File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 @@ | ||
| build/ |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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,76 @@ | ||
| cmake_minimum_required(VERSION 3.13) | ||
|
|
||
| # include this file to check submodule include | ||
|
|
||
| # set here as only | ||
| set(warthog_https_warthog-core "https://github.com/ShortestPathLab/warthog-core.git" CACHE INTERNAL "") | ||
| set(warthog_https_warthog-jps "https://github.com/ShortestPathLab/warthog-jps.git" CACHE INTERNAL "") | ||
|
|
||
| if(COMMAND warthog_module) | ||
| return() # do not redefine | ||
| endif() | ||
|
|
||
| include(FetchContent) | ||
|
|
||
| set(WARTHOG_MODULE_ROOT_ONLY ON CACHE BOOL "add submodule if present only allowed for root project") | ||
|
|
||
| function(warthog_top_level) | ||
| set(_is_top OFF) | ||
| if(${CMAKE_VERSION} VERSION_GREATER_EQUAL 3.21) | ||
| if(${PROJECT_IS_TOP_LEVEL}) | ||
| set(_is_top ON) | ||
| endif() | ||
| else() | ||
| if(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR}) | ||
| set(_is_top ON) | ||
| endif() | ||
| endif() | ||
| set(_warthog_is_top ${_is_top} PARENT_SCOPE) | ||
| endfunction() | ||
|
|
||
| # warthog_module module [override_top] | ||
| # adds a module to warthog | ||
| # has checks to insure module is only added once | ||
| # if called from the top level project (or optional variable override_top is true) | ||
| # then if extern/${module}/CMakeLists.txt exists, adds that version instead | ||
| # intended for use with git module/subtree. | ||
| # otherwise, fetchcontent ${module} is made available | ||
| # user must add FetchContent_Declare | ||
| function(warthog_module module) | ||
| get_property(_module_added GLOBAL PROPERTY WARTHOG_${module} SET) | ||
| if(${_module_added}) # module already added | ||
| return() | ||
| endif() | ||
| if((${ARGC} GREATER 1) AND (${ARGV1})) | ||
| set(is_top_level ON) | ||
| else() | ||
| warthog_top_level() | ||
| set(is_top_level ${_warthog_is_top}) | ||
| endif() | ||
| if(${is_top_level}) | ||
| if(EXISTS "${PROJECT_SOURCE_DIR}/extern/${module}/CMakeLists.txt") | ||
| # module or subtree, include and exit | ||
| add_subdirectory("${PROJECT_SOURCE_DIR}/extern/${module}") | ||
| set_property(GLOBAL PROPERTY WARTHOG_${module} ON) | ||
| return() | ||
| endif() | ||
| endif() | ||
| # failed to add module, fetch if able | ||
| warthog_module_declare(${module}) | ||
| FetchContent_MakeAvailable(${module}) | ||
| set_property(GLOBAL PROPERTY WARTHOG_${module} ON) | ||
| endfunction() | ||
|
|
||
| function(warthog_module_declare module) | ||
| if(NOT DEFINED warthog_https_${module}) | ||
| return() | ||
| endif() | ||
| if((${ARGC} GREATER 1)) | ||
| set(git_tag ${ARGV1}) | ||
| else() | ||
| set(git_tag "main") | ||
| endif() | ||
| FetchContent_Declare(${module} | ||
| GIT_REPOSITORY ${warthog_https_${module}} | ||
| GIT_TAG ${git_tag}) | ||
| endfunction() |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.