-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpremake5.lua
43 lines (32 loc) · 886 Bytes
/
premake5.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
newoption {
trigger = "lib-dir",
description = "Specify extra directory to look for libraries in",
value = "DIR"
}
newoption {
trigger = "include-dir",
description = "Specify extra directory to look for headers in",
value = "DIR"
}
workspace "cschnorr"
configurations {"Debug", "Release"}
platforms {"Static", "Shared"}
language "C"
includedirs {_OPTIONS["include-dir"]}
libdirs {_OPTIONS["lib-dir"]}
filter {"configurations:Debug"}
optimize "Off"
symbols "On"
filter {"configurations:Release"}
optimize "Full"
symbols "Off"
project "cschnorr"
files {"src/**.h", "src/**.c"}
filter {"platforms:Static"}
kind "StaticLib"
filter {"platforms:Shared"}
kind "SharedLib"
project "test"
kind "ConsoleApp"
files {"main.c"}
links {"cschnorr", "crypto"}