diff --git a/app/math.cpp b/app/math.cpp index 1c48bf8..e550be4 100644 --- a/app/math.cpp +++ b/app/math.cpp @@ -1,4 +1,4 @@ -#include "../bmath/math.hpp" +#include "../src/bmath/math.hpp" #include using namespace BMath; diff --git a/premake/maths.lua b/premake/maths.lua new file mode 100644 index 0000000..f25ce16 --- /dev/null +++ b/premake/maths.lua @@ -0,0 +1,26 @@ +project "maths" +kind "ConsoleApp" +language "c++" +targetdir "../bin/%{cfg.buildcfg}" +objdir "../obj" + +--files {"**.hpp","**.cpp"} +files { + "../app/math.cpp", + "../src/bmath/**.hpp", + "../src/bmath/**.cpp", + "../src/misc/**.hpp", + "../src/misc/**.cpp", + "../src/cpu/**.hpp", + "../src/cpu/**.cpp" +} + +filter "configurations:Debug" + defines { "DEBUG" } + symbols "On" + +filter "configurations:Release" + defines { "NDEBUG" } + optimize "On" + +filter { "system:linux" } \ No newline at end of file diff --git a/premake5.lua b/premake5.lua index 4f11c52..95a3155 100644 --- a/premake5.lua +++ b/premake5.lua @@ -3,4 +3,5 @@ workspace "CppLib" system "linux" include("premake/sse.lua") - include("premake/libbmath.lua") \ No newline at end of file + include("premake/libbmath.lua") + include("premake/maths.lua") \ No newline at end of file