aboutsummaryrefslogtreecommitdiff
path: root/premake5.lua
diff options
context:
space:
mode:
authorPjotr Prins2025-06-26 17:33:23 +0200
committerPjotr Prins2025-06-26 17:33:23 +0200
commit8d35c97c06d601f855707192cab9b74d4b672aa3 (patch)
tree7441e40bed9578cf1c3faafb636b511810a2c0b6 /premake5.lua
parent3e54ecd73665934187932e61efe922a472887246 (diff)
downloadpangemma-8d35c97c06d601f855707192cab9b74d4b672aa3.tar.gz
Introducing premake
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"