Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaiaeroastro committed Aug 5, 2024
1 parent f21ce20 commit 492107c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -465,13 +465,13 @@ jobs:
- name: Unpack the SDK
run: |
unzip lib3mf_sdk.zip/lib3mf_sdk.zip
# - name: Build CppDynamic
# run: |
# sh Examples/CppDynamic/GenerateMake.sh
# cd Examples/CppDynamic/build
# cmake --build .
# ls -al
# ./Example_ExtractInfo ../../Files/Helix.3mf
- name: Build CppDynamic
run: |
sh Examples/CppDynamic/GenerateMake.sh
cd Examples/CppDynamic/build
cmake --build .
ls -al
./Example_ExtractInfo ../../Files/Helix.3mf
# - name: Build Cpp
# run: |
# sh Examples/Cpp/GenerateMake.sh
Expand Down
4 changes: 4 additions & 0 deletions cmake/GenerateMake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,20 @@ if [ "$(uname)" = "Darwin" ]; then
# Check if the first argument is Debug mode
if [ "$1" = "Debug" ]; then
shift # Remove the first argument to pass remaining arguments
echo -e "DARWIN+DEBUG\n"
cmake .. -G "Unix Makefiles" -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DCMAKE_BUILD_TYPE=Debug "$@"
else
echo -e "DARWIN+RELEASE\n"
cmake .. -G "Unix Makefiles" -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DCMAKE_BUILD_TYPE=Release "$@"
fi
else
# For Linux and other OSes
if [ "$1" = "Debug" ]; then
shift # Remove the first argument to pass remaining arguments
echo -e "LINUX+DEBUG\n"
cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug "$@"
else
echo -e "LINUX+RELEASE\n"
cmake .. -G "Unix Makefiles" "$@"
fi
fi

0 comments on commit 492107c

Please sign in to comment.