forked from neuromorphic-paris/tarsier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake4.lua
44 lines (42 loc) · 1.27 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
local template = require 'template'
newaction {
trigger = 'template',
description = 'generate a template event handler',
execute = function()
if _OPTIONS['configuration'] == nil then
template('configuration.json')
else
template(_OPTIONS['configuration'])
end
end
}
newoption {
trigger = 'configuration',
value = '/path/to/configuration.json',
description = 'set the path to the configuration file for template generation'
}
solution 'tarsier'
configurations {'release', 'debug'}
location 'build'
project 'tarsier'
kind 'ConsoleApp'
language 'C++'
location 'build'
files {'source/*.hpp', 'test/*.cpp'}
configuration 'release'
targetdir 'build/release'
defines {'NDEBUG'}
flags {'OptimizeSpeed'}
configuration 'debug'
targetdir 'build/debug'
defines {'DEBUG'}
flags {'Symbols'}
configuration 'linux'
links {'pthread'}
buildoptions {'-std=c++11'}
linkoptions {'-std=c++11'}
configuration 'macosx'
buildoptions {'-std=c++11'}
linkoptions {'-std=c++11'}
configuration 'windows'
files {'.clang-format'}