forked from apetrone/simplefilewatcher
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpremake5.lua
53 lines (44 loc) · 1.23 KB
/
premake5.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
53
configuration "windows"
platforms {"Win32", "x64"}
workspace "SimpleFileWatcherAll"
configurations { "Debug", "Release" }
location("build/" .. _ACTION)
-- Ensure compiling for C++11 under gmake
if (_ACTION == "gmake") then
buildoptions {"-std=c++11", "-pthread"}
links {"pthread"}
end
project "SimpleFileWatcher"
location("build/" .. _ACTION .. "/SimpleFileWatcher")
kind "StaticLib"
language "C++"
files {"source/*.cpp", "include/FileSystemWatcher/*.h", "include/FileSystemWatcher/*.hpp"}
includedirs {"include"}
targetdir "lib/%{cfg.buildcfg}"
defines {"WIN_USE_WSTR"}
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
-- A project defines one build target
project "SimpleDemo"
location("build/" .. _ACTION .. "/SimpleDemo")
targetdir "bin/%{cfg.buildcfg}"
kind "ConsoleApp"
language "C++"
files {
"SimpleDemo.cpp"
}
links {"SimpleFileWatcher"}
includedirs { "include" }
defines {"WIN_USE_WSTR"}
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
workspace "SimpleFileWatcherAll"
startproject("SimpleDemo")