-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpremake5.lua
More file actions
53 lines (44 loc) · 1.15 KB
/
premake5.lua
File metadata and controls
53 lines (44 loc) · 1.15 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
-- premake5.lua
--
-- *** Please fix this script for your environment. ***
--
exec_sources = {
"./src/main.cpp",
"./src/train.cpp",
"./src/yukiti.cpp",
"./src/yukiti2.cpp",
}
workspace "RespRobotWorkspace"
configurations { "release", "debug" }
language "C++"
basedir "build"
buildoptions { "-std=c++03" }
includedirs { "/usr/local/include" }
libdirs { "/usr/local/lib" }
libdirs { "./build/bin/release" }
links { "opencv_core", "opencv_highgui", "opencv_objdetect",
"opencv_videoio", "opencv_imgproc", "opencv_calib3d",
"opencv_imgcodecs", } -- cv 3.1
-- Configuration
configuration "debug"
defines { "DEBUG" }
flags { "Symbols" }
configuration "release"
defines { "NDEBUG" }
flags { "Optimize" }
-- My library
project "clm"
kind "SharedLib"
files { "./src/**.cpp", }
removefiles { exec_sources }
-- Executable projects
for i, path in ipairs(exec_sources) do
name = string.match(path, ".*/(.-)%.%w-$") -- "dir/name.ext"
if not name then
name = string.match(path, "(.-)%.%w-$") -- "name.ext"
end
project( name )
kind "ConsoleApp"
links { "clm" }
files { path }
end