aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--build-instructions.md24
-rwxr-xr-xclean-build.sh16
3 files changed, 32 insertions, 11 deletions
diff --git a/.gitignore b/.gitignore
index d574d28..dfd52ee 100644
--- a/.gitignore
+++ b/.gitignore
@@ -25,6 +25,7 @@
# CMake
cmake-build-debug/
+cmake-build-release/
# Mongo Explorer plugin:
.idea/**/mongoSettings.xml
@@ -50,4 +51,4 @@ atlassian-ide-plugin.xml
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
-fabric.properties \ No newline at end of file
+fabric.properties
diff --git a/build-instructions.md b/build-instructions.md
index 02459b4..8ecb321 100644
--- a/build-instructions.md
+++ b/build-instructions.md
@@ -3,23 +3,27 @@
The project uses the CMake build system generator. there are several stages for
building the project, running the program, and creating an installer.
-## Installing dependencies
+### Installing dependencies
-`cd cmake-build-debug; conan install ..; cd ..`
+`cd cmake-build-[debug|release]; conan install ..; cd ..`
-## Generate Build System
+### Generate Build System
-`cmake -Bcmake-build-debug -H.`
+`cmake -Bcmake-build-[debug|release] -H.`
-## Build project
+### Build project
-`cmake --build cmake-build-debug`
+`cmake --build cmake-build-[debug|release]`
-## Run executable
+### Run executable
-`./cmake-build-debug/bin/solitaire_pip`
+`./cmake-build-[debug|release]/bin/solitaire_pip`
-## Create project installer
+### Create project installer
-`cpack --config cmake-build-debug/CPackConfig.cmake`
+`cpack --config cmake-build-[debug|release]/CPackConfig.cmake`
+## A Note on CLion
+
+If CLion complains that a dependency is missing, you may need to run the conan
+install command, and then in Clion run 'File->Reload CMake Project
diff --git a/clean-build.sh b/clean-build.sh
new file mode 100755
index 0000000..b9847a3
--- /dev/null
+++ b/clean-build.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+echo "Cleaning..."
+rm -r cmake-build-release/*; rm -r cmake-build-debug/*
+
+echo "Installing..."
+cd cmake-build-debug; conan install ..; cd ..
+cd cmake-build-release; conan install ..; cd ..
+
+echo "Generating build..."
+cmake -Bcmake-build-debug -H.
+cmake -Bcmake-build-release -H.
+
+echo "Building..."
+cmake --build cmake-build-debug
+cmake --build cmake-build-release