-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
59 lines (48 loc) · 1.42 KB
/
premake5.lua
File metadata and controls
59 lines (48 loc) · 1.42 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
solution "QuadPuppet"
startproject "HoloEdit"
configurations { "Release", "Debug" }
platforms { "x86_64" }
filter "platforms:x86_64"
architecture "x86_64"
filter "configurations:Release*"
defines { "NDEBUG" }
optimize "Speed"
symbols "On"
filter "configurations:Debug*"
defines { "_DEBUG" }
optimize "Debug"
symbols "On"
filter {}
-- Defined as a function so it can be used in other premake scripts.
function QuadPuppetProject(rootDir)
kind "SharedLib"
language "C++"
cppdialect "C++17"
exceptionhandling "On"
rtti "On"
characterset "ASCII"
location ("build/" .. _ACTION)
defines {
"_CRT_SECURE_NO_WARNINGS",
"_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS",
"_USE_MATH_DEFINES",
"QP_DLL_EXPORT"
}
files {
path.join(rootDir, "src/*.cpp"),
path.join(rootDir, "include/**.h"),
path.join(rootDir, "src/Pinocchio/include/*.h"),
path.join(rootDir, "src/Pinocchio/src/*.cpp"),
path.join(rootDir, "src/quadprog/*.cpp"),
path.join(rootDir, "src/quadprog/*.cc"),
path.join(rootDir, "src/quadprog_eigen/*.cpp")
}
includedirs {
path.join(rootDir, "include/"),
path.join(rootDir, "src/Pinocchio/include/"),
path.join(rootDir, "lib/")
}
filter {}
end
project "QuadPuppet"
QuadPuppetProject("./")