-
Notifications
You must be signed in to change notification settings - Fork 1
/
premake4.lua
44 lines (37 loc) · 1.24 KB
/
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
39
40
41
42
43
44
solution 'gmm'
configurations {'Release', 'Debug'}
location 'build'
for index, file in pairs(os.matchfiles('source/**.cpp')) do
local name = path.getbasename(file)
project(name)
-- General settings
kind 'ConsoleApp'
language 'C++'
location 'build'
-- All files in source
files {'source/**.hpp',
file
}
-- Declare the configurations
configuration 'Release'
targetdir 'build/release'
defines {'NDEBUG','STATS_ENABLE_BLAZE_WRAPPERS'}
flags {'OptimizeSpeed'}
configuration 'Debug'
targetdir 'build/debug'
defines {'DEBUG','STATS_ENABLE_BLAZE_WRAPPERS'}
flags {'Symbols'}
configuration 'linux or macosx'
includedirs {'/usr/local/include'}
libdirs {'/usr/local/lib'}
linkoptions {'-ltbb','-lopenblas'}
-- Linux specific settings
configuration 'linux'
links {'pthread'}
buildoptions {'-std=c++14'}
linkoptions {'-std=c++14'}
-- Mac OS X specific settings
configuration 'macosx'
buildoptions {'-std=c++14'}
linkoptions {'-std=c++14'}
end