Skip to content

Commit

Permalink
fix argument parsing; allow drag&drop of las files into binary; copy …
Browse files Browse the repository at this point in the history
…json license to build
  • Loading branch information
potree committed Aug 24, 2020
1 parent 7ca5abc commit 9df10f4
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 331 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ add_custom_command(
${LASZIP_DIR}/COPYING
$<TARGET_FILE_DIR:${PROJECT_NAME}>/licenses/license_laszip.txt)

add_custom_command(
TARGET PotreeConverter POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${PROJECT_SOURCE_DIR}/Converter/libs/json/LICENSE
$<TARGET_FILE_DIR:${PROJECT_NAME}>/licenses/license_json.txt)

add_custom_command(
TARGET PotreeConverter POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
Expand Down
25 changes: 0 additions & 25 deletions Converter/Converter.sln

This file was deleted.

183 changes: 0 additions & 183 deletions Converter/Converter.vcxproj

This file was deleted.

117 changes: 0 additions & 117 deletions Converter/Converter.vcxproj.filters

This file was deleted.

7 changes: 5 additions & 2 deletions Converter/libs/arguments/Arguments.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,16 @@ class Arguments {
AValue get(string name) {
Argument *arg = getArgument(name);

vector<string> values;

for (auto entry : map) {
if (arg->is(entry.first)) {
return AValue(entry.second);
values.insert(values.end(), entry.second.begin(), entry.second.end());
//return AValue(entry.second);
}
}

return AValue({});
return AValue(values);
}


Expand Down
Loading

0 comments on commit 9df10f4

Please sign in to comment.