Index: trunk/tests/lualib_test/lualib_test.cc
===================================================================
--- trunk/tests/lualib_test/lualib_test.cc	(revision 214)
+++ 	(revision )
@@ -1,78 +1,0 @@
-#include <nv/lib/lua.hh>
-#include <nv/lua/lua_state.hh>
-#include <nv/lua/lua_dispatch.hh>
-#include <nv/lua/lua_raw.hh>
-#include <nv/lua/lua_glm.hh>
-#include <nv/logger.hh>
-#include <nv/math.hh>
-#include <nv/object.hh>
-#include <string>
-#include <iostream>
-#include <functional>
-#include <nv/gui/gui_element.hh>
-
-void hello( const std::string& h )
-{
-	std::cout << h << " world from C++!" << std::endl;
-}
-
-
-int main(int, char* [])
-{
-	nv::logger log(nv::LOG_TRACE);
-	log.add_sink( new nv::log_file_sink("log.txt"), nv::LOG_TRACE );
-	log.add_sink( new nv::log_console_sink(), nv::LOG_TRACE );
-	
-	NV_LOG( nv::LOG_NOTICE, "Logging started" );
-
-	// create new Lua state
-	{
-		nv::lua::state state( true );
-		nv::lua::register_glm( state );
-		// run the Lua script
-		state.register_function<decltype(hello),&hello>( "hello" );
-		state.do_file( "init.lua" );
-		//std::cout << nv::function_traits<decltype(hello)>::arg_count << std::endl;
-
-		log.set_level( nv::LOG_INFO );
-		for (;;)
-		{
-			nv::lua::stack_guard guard( state );
-			int stack = guard.get_level();
-			std::string input;
-			std::cout << "LUA (" << stack << ") > ";
-			std::getline( std::cin, input );
-			if (input == "quit")
-			{
-				break;
-			}
-
-			if (input.find("=", 0) == std::string::npos && 
-				input.find("if", 0) == std::string::npos && 
-				input.find("return", 0) == std::string::npos)
-			{
-				input = "return " + input;
-			}
-
-			std::cout << "> " << input << std::endl;
-
-			bool result = state.do_string( input, "", nv::lua::ret_multi );
-			if ( !result )
-			{
-				continue;
-			}
-
-			if (lua_gettop( state ) > stack)
-			{
-				for ( int i = stack+1; i <= lua_gettop( state ); ++i )
-				{
-					std::cout << nlua_typecontent( state, i ) << std::endl;
-				}
-			}
-		}
-	}
-	NV_LOG( nv::LOG_NOTICE, "Logging stopped" );
-
-	return 0;
-}
-
Index: trunk/tests/lualib_test/lualib_test.lua
===================================================================
--- trunk/tests/lualib_test/lualib_test.lua	(revision 321)
+++ trunk/tests/lualib_test/lualib_test.lua	(revision 321)
@@ -0,0 +1,8 @@
+project "nv_lualib_test"
+	kind "ConsoleApp"
+	files { "nv_lualib_test.cc" }
+	includedirs { "../../" }
+	targetname "nv_lualib_test"
+	links { "nv-core", "nv-lua" }
+	targetdir "../../bin"	
+ 
Index: trunk/tests/lualib_test/nv_lualib_test.cc
===================================================================
--- trunk/tests/lualib_test/nv_lualib_test.cc	(revision 321)
+++ trunk/tests/lualib_test/nv_lualib_test.cc	(revision 321)
@@ -0,0 +1,76 @@
+#include <nv/lib/lua.hh>
+#include <nv/lua/lua_state.hh>
+#include <nv/lua/lua_dispatch.hh>
+#include <nv/lua/lua_raw.hh>
+#include <nv/lua/lua_glm.hh>
+#include <nv/core/logger.hh>
+#include <nv/core/math.hh>
+#include <nv/core/string.hh>
+#include <iostream>
+#include <functional>
+
+void hello( const std::string& h )
+{
+	std::cout << h << " world from C++!" << std::endl;
+}
+
+
+int main(int, char* [])
+{
+	nv::logger log(nv::LOG_TRACE);
+	log.add_sink( new nv::log_file_sink("log.txt"), nv::LOG_TRACE );
+	log.add_sink( new nv::log_console_sink(), nv::LOG_TRACE );
+	
+	NV_LOG( nv::LOG_NOTICE, "Logging started" );
+
+	// create new Lua state
+	{
+		nv::lua::state state( true );
+		nv::lua::register_glm( state );
+		// run the Lua script
+		state.register_function<decltype(&hello),&hello>( "hello" );
+		state.do_file( "init.lua" );
+		//std::cout << nv::function_traits<decltype(hello)>::arg_count << std::endl;
+
+		log.set_level( nv::LOG_INFO );
+		for (;;)
+		{
+			nv::lua::stack_guard guard( state );
+			int stack = guard.get_level();
+			std::string input;
+			std::cout << "LUA (" << stack << ") > ";
+			std::getline( std::cin, input );
+			if (input == "quit")
+			{
+				break;
+			}
+
+			if (input.find("=", 0) == std::string::npos && 
+				input.find("if", 0) == std::string::npos && 
+				input.find("return", 0) == std::string::npos)
+			{
+				input = "return " + input;
+			}
+
+			std::cout << "> " << input << std::endl;
+
+			bool result = state.do_string( input, "", nv::lua::ret_multi );
+			if ( !result )
+			{
+				continue;
+			}
+
+			if (lua_gettop( state ) > stack)
+			{
+				for ( int i = stack+1; i <= lua_gettop( state ); ++i )
+				{
+					std::cout << nlua_typecontent( state, i ) << std::endl;
+				}
+			}
+		}
+	}
+	NV_LOG( nv::LOG_NOTICE, "Logging stopped" );
+
+	return 0;
+}
+
Index: trunk/tests/lualib_test/premake4.lua
===================================================================
--- trunk/tests/lualib_test/premake4.lua	(revision 214)
+++ trunk/tests/lualib_test/premake4.lua	(revision 321)
@@ -8,17 +8,11 @@
 		defines { "DEBUG" }
 		flags { "Symbols", "StaticRuntime" }
-		objdir (_ACTION.."/debug")
+		objdir ("../../".._ACTION.."/debug")
 
 	configuration "release"
 		defines { "NDEBUG" }
 		flags { "Optimize", "StaticRuntime" }
-		objdir (_ACTION.."/release")
+		objdir ("../../".._ACTION.."/release")
 
 	dofile("lualib_test.lua")
 	dofile("../../nv.lua")
-
-if _ACTION == "clean" then
-	for action in premake.action.each() do
-		os.rmdir(action.trigger)
-	end
-end
Index: trunk/tests/lualib_test/rl.lua
===================================================================
--- trunk/tests/lualib_test/rl.lua	(revision 214)
+++ 	(revision )
@@ -1,9 +1,0 @@
--- RL project definition
-project "rl"
-	kind "ConsoleApp"
-	files { "src/**.hh", "src/**.cc", "rl.cc" }
-	includedirs { "src", "../nv" }
-	targetname "rl"
-	defines { "_SCL_SECURE_NO_WARNINGS" }
-	links { "nv" }
- 
