poco/MongoDB/premake4.lua
2013-02-02 21:52:49 +01:00

148 lines
2.8 KiB
Lua

-- Where is POCO?
--poco_dir = "C:/Users/u77589/Documents/poco-1.4.3p1-all"
poco_dir = "/home/bronx/Development/PocoTrunk"
poco_lib_dir = poco_dir .. "/lib"
-- Solution
solution "PocoMongoDB"
configurations { "Debug", "Release" }
platforms { "x32", "x64" }
location ( "build/" .. _ACTION )
configuration "Debug"
targetdir "bin/Debug"
defines { "DEBUG" }
flags { "Symbols" }
configuration "Release"
targetdir "bin/Release"
configuration { "linux", "Release" }
libdirs {
"bin/Release"
}
configuration { "linux", "Debug" }
libdirs {
"bin/Debug"
}
project "PocoMongoDB"
kind "SharedLib"
language "C++"
targetname "PocoMongoDB"
location ( solution().location )
configuration "Debug"
targetsuffix "d"
configuration { }
defines { "MongoDB_EXPORTS" }
files {
"src/*.cpp"
, "include/**.h"
}
libdirs {
poco_lib_dir
}
includedirs {
poco_dir .. "/Foundation/include"
, poco_dir .. "/Net/include"
, poco_dir .. "/Util/include"
, poco_dir .. "/XML/include"
, "include"
}
configuration "Debug"
links {
"PocoNetd"
, "PocoFoundationd"
}
configuration "Release"
links {
"PocoNet"
, "PocoFoundation"
}
project "MongoDBTestSuite"
kind "ConsoleApp"
language "C++"
configuration "Debug"
targetsuffix "d"
configuration { }
files {
"testsuite/src/*.cpp"
}
includedirs {
poco_dir .. "/Foundation/include"
, poco_dir .. "/Net/include"
, poco_dir .. "/CppUnit/include"
, "include"
}
libdirs {
poco_lib_dir
}
configuration "Debug"
links {
"PocoFoundationd"
, "PocoMongoDBd"
}
configuration "Release"
links {
"PocoFoundation"
, "PocoMongoDB"
}
project "MongoDBSample"
kind "ConsoleApp"
language "C++"
targetname "MongoDBSample"
configuration "Debug"
targetsuffix "d"
configuration { }
files {
"samples/**.cpp"
}
includedirs {
poco_dir .. "/Foundation/include"
, poco_dir .. "/Net/include"
, "include"
}
libdirs {
poco_lib_dir
}
configuration "Debug"
links {
"PocoFoundationd"
, "PocoMongoDBd"
}
configuration "Release"
links {
"PocoFoundation"
, "PocoMongoDB"
}