diff --git a/.gitattributes b/.gitattributes index bed93cf..ee30d98 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,3 @@ Doxyfile.in eol=lf -*.bat eol=crlf \ No newline at end of file +*.bat eol=crlf +*.sh eol=lf \ No newline at end of file diff --git a/script/linux_build.sh b/script/linux_build.sh new file mode 100644 index 0000000..98fa32d --- /dev/null +++ b/script/linux_build.sh @@ -0,0 +1,32 @@ +#!/bin/bash +README_PATH=$(pwd)/README.md +if [ ! -f "$README_PATH" ]; then + echo "Error: You must run this script at the root folder of this project!" + exit +fi + +# Create main binary directory +mkdir bin +cd bin +# Create build directory +mkdir build +# Create install directory +mkdir install +cd install +mkdir Debug +mkdir Release +cd .. + +# Build current system debug and release version +cd build +cmake -DCMAKE_BUILD_TYPE=Debug ../.. --fresh +cmake --build . +cmake --install . --prefix ../install/Debug +cmake -DCMAKE_BUILD_TYPE=Release -DYYCC_BUILD_TESTBENCH=ON ../.. --fresh +cmake --build . +cmake --install . --prefix ../install/Release +cd .. + +# Exit to original path +cd .. +echo "Linux CMake Build Done" diff --git a/src/ConfigManager.hpp b/src/ConfigManager.hpp index 9339ced..b0042ce 100644 --- a/src/ConfigManager.hpp +++ b/src/ConfigManager.hpp @@ -9,6 +9,7 @@ #include #include #include +#include namespace YYCC::ConfigManager {