-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpremake4.lua
52 lines (45 loc) · 1.6 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
45
46
47
48
49
50
51
52
solution "oocholmod_solution"
configurations { "Release", "Debug" }
libdirs { "/usr/local/lib/" }
location "project"
platforms { "Universal" }
project "oocholmod"
kind "StaticLib"
language "C++"
files { "src/**.h","src/**.cpp"}
includedirs { "src", "/usr/local/include"}
buildoptions "-std=c++11 -stdlib=libc++"
links { "Accelerate.framework" }
buildoptions { "-F/Library/Frameworks/" , "-F/usr/local/lib/", "-F./lib/debug"}
linkoptions { "-F/Library/Frameworks/" , "-F/usr/local/lib/", "-lcholmod", "-lccolamd", "-lcolamd", "-lsuitesparseconfig", "-lcamd","-lamd", "-lccolamd", "-lamd"}
configuration "Debug"
targetdir "lib/debug"
defines { "DEBUG" }
flags { "Symbols" }
configuration "Release"
targetdir "lib/release"
defines { "NDEBUG" }
flags { "Optimize" }
if _ACTION == "clean" then
os.rmdir("lib")
end
project "oocholmod_unittest"
kind "ConsoleApp"
language "C++"
files {"test/**.h","test/**.cpp"}
includedirs { "src", "test", "/usr/local/include" }
buildoptions "-std=c++11 -stdlib=libc++"
links { "Accelerate.framework"}
buildoptions { "-F/Library/Frameworks/" , "-F/usr/local/lib/", "-F./lib/debug"}
linkoptions { "-F/Library/Frameworks/" , "-F/usr/local/lib/", "-lcholmod", "-lccolamd", "-lcolamd", "-lsuitesparseconfig", "-lcamd","-lamd", "-lccolamd", "-lamd"}
configuration "Debug"
targetdir "bin/debug"
defines { "DEBUG"}
flags { "Symbols" }
configuration "Release"
targetdir "bin/release"
defines { "NDEBUG"}
flags { "Optimize" }
if _ACTION == "clean" then
os.rmdir("bin")
end