aboutsummaryrefslogtreecommitdiff
path: root/examples/obj_sticher/premake4.lua
blob: 9c2deb6e700d168993f77ddfc3089558cbf7e09f (plain)
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
lib_sources = {
   "../../tiny_obj_loader.cc"
}

sources = {
   "obj_sticher.cc",
   "obj_writer.cc",
   }

-- premake4.lua
solution "ObjStickerSolution"
   configurations { "Release", "Debug" }

   if (os.is("windows")) then
      platforms { "x32", "x64" }
   else
      platforms { "native", "x32", "x64" }
   end

   includedirs {
      "../../"
   }

   -- A project defines one build target
   project "obj_sticher"
      kind "ConsoleApp"
      language "C++"
      files { lib_sources, sources }

      configuration "Debug"
         defines { "DEBUG" } -- -DDEBUG
         flags { "Symbols" }
         targetname "obj_sticher_debug"

      configuration "Release"
         -- defines { "NDEBUG" } -- -NDEBUG
         flags { "Symbols", "Optimize" }
         targetname "obj_sticher"