-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added cmake script for simplifying and focusing on cmake builds for…
… gams (#90) * Removed eigen code requirement for base_build and instead just have it installing Eigen. Didn't try this on MPC build, but it's probably a good idea to move away from MPC anyway * Fixed warnings in cmake build
- Loading branch information
1 parent
cd1a894
commit fba3aeb
Showing
5 changed files
with
38 additions
and
37 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,18 @@ | ||
#!/bin/bash | ||
|
||
SCRIPT_PATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | ||
|
||
PROJECT_PATH=$SCRIPT_PATH/../.. | ||
|
||
echo SCRIPT_PATH=$SCRIPT_PATH | ||
echo PROJECT_PATH=$PROJECT_PATH | ||
|
||
cd $PROJECT_PATH | ||
mkdir build | ||
mkdir install | ||
cd build | ||
cmake -DCMAKE_INSTALL_PREFIX="../install" -D'CMAKE_INSTALL_PREFIX=/usr/local' -DCMAKE_PREFIX_PATH=$PROJECT_PATH/install .. | ||
cmake --build . --config debug -j$(nproc) | ||
cmake --build . --config release | ||
sudo cmake --build . --target install --config release | ||
sudo cmake --build . --target install --config debug |
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,2 @@ | ||
# To do: modify gpc.pl to generate the files rather than copying | ||
# them or copy the files to /usr/local |
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