Replaced cmake with scons
[biaweb2.git] / SConstruct
diff --git a/SConstruct b/SConstruct
new file mode 100644 (file)
index 0000000..d9a3794
--- /dev/null
@@ -0,0 +1,14 @@
+env = Environment ()
+env.Append (CXXFLAGS = '-std=c++17')
+conf = Configure (env)
+if not conf.CheckCHeader ("mkdio.h"):
+       print ("markdown header mkdio not found. Install libmarkdown2-dev or equivalent")
+       Exit (1)
+if not conf.CheckCXXHeader ("fmt/format.h"):
+       print ("libfmt header file fmt/format.h not found. Install the libfmt-dev or equivalent")
+       Exit (1)
+env = conf.Finish ()
+biaweb = env.Program (target='biaweb', source=['biaweb.cpp'],
+                                       LIBS=['fmt', 'markdown'], LIBPATH=['/usr/lib', '/usr/local/lib'])
+Default (biaweb)
+