-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake4.lua
38 lines (32 loc) · 965 Bytes
/
premake4.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!lua
-- A solution contains projects, and defines the available configurations
solution "MidiUtils"
objdir "build/obj"
targetdir "build/bin"
debugdir "build/bin"
configurations { "Debug", "Release" }
-- The main library
project "MidiUtils"
kind "StaticLib"
language "C++"
includedirs { "include" }
files { "**.h", "src/**.cpp" }
configuration "Debug"
defines { "DEBUG" }
flags { "Symbols" }
configuration "Release"
defines { "NDEBUG" }
flags { "Optimize" }
-- A Test Example
project "TestExample"
kind "ConsoleApp"
language "C++"
includedirs { "include" }
files { "main.cpp" }
links { "MidiUtils" }
configuration "Debug"
defines { "DEBUG" }
flags { "Symbols" }
configuration "Release"
defines { "NDEBUG" }
flags { "Optimize" }