aboutsummaryrefslogtreecommitdiff
path: root/premake5.lua
diff options
context:
space:
mode:
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/premake5.lua b/premake5.lua
new file mode 100644
index 0000000..ec0dd9b
--- /dev/null
+++ b/premake5.lua
@@ -0,0 +1,24 @@
+-- Run with
+--
+-- premake5 gmake && make -j 8
+
+workspace "PanGemma"
+ configurations { "Debug", "Release" }
+
+project "PanGemma"
+ kind "ConsoleApp"
+ language "C++"
+ objdir "build/"
+ targetdir "build/bin/%{cfg.buildcfg}"
+
+ files { "src/*.h src/*.c src/**.hpp", "src/**.cpp" }
+ includedirs { "src/" }
+ links { "gsl", "z", "openblas" }
+
+ filter "configurations:Debug"
+ defines { "DEBUG" }
+ symbols "On"
+
+ filter "configurations:Release"
+ defines { "NDEBUG" }
+ optimize "On"