diff options
author | Milo Yip <miloyip@gmail.com> | 2014-07-12 19:07:41 +0400 |
---|---|---|
committer | Milo Yip <miloyip@gmail.com> | 2014-07-12 19:07:41 +0400 |
commit | 3c8a9234399f03d1a4e41b0ef136593dc2667b2c (patch) | |
tree | 03b134371d7ec4fd150765666f52fbcc7b6b453c /build | |
parent | 6225092355e3087c3e73928f54cc1073c55067d6 (diff) |
Add simplereader, simplewriter examples.
Also modify premake to add all projects in example folder.
Diffstat (limited to 'build')
-rw-r--r-- | build/premake4.lua | 36 |
1 files changed, 7 insertions, 29 deletions
diff --git a/build/premake4.lua b/build/premake4.lua index 0b5dbb18..4f7d77fd 100644 --- a/build/premake4.lua +++ b/build/premake4.lua @@ -156,32 +156,10 @@ solution "example" configuration "gmake"
buildoptions "-Werror -Wall -Wextra -Weffc++ -Wswitch-default"
- project "condense"
- kind "ConsoleApp"
- files "../example/condense/*"
- setTargetObjDir("../bin")
-
- project "pretty"
- kind "ConsoleApp"
- files "../example/pretty/*"
- setTargetObjDir("../bin")
-
- project "prettyauto"
- kind "ConsoleApp"
- files "../example/prettyauto/*"
- setTargetObjDir("../bin")
-
- project "tutorial"
- kind "ConsoleApp"
- files "../example/tutorial/*"
- setTargetObjDir("../bin")
-
- project "serialize"
- kind "ConsoleApp"
- files "../example/serialize/*"
- setTargetObjDir("../bin")
-
- project "simpledom"
- kind "ConsoleApp"
- files "../example/simpledom/*"
- setTargetObjDir("../bin")
+ local examplepaths = os.matchdirs("../example/*")
+ for _, examplepath in ipairs(examplepaths) do
+ project(path.getname(examplepath))
+ kind "ConsoleApp"
+ files(examplepath .. "/*")
+ setTargetObjDir("../bin")
+ end
|