CMakeLists.txt
changeset 9988 317d46a2afd2
parent 9965 7ced30acf533
child 9991 3858d99476f5
--- a/CMakeLists.txt	Tue Jan 14 11:45:52 2014 +0100
+++ b/CMakeLists.txt	Tue Jan 14 22:56:13 2014 +0100
@@ -204,3 +204,10 @@
 
 include(${CMAKE_MODULE_PATH}/cpackvars.cmake)
 
+enable_testing()
+
+set(LUATESTS "${CMAKE_SOURCE_DIR}/tests/lua")
+set(LUAAPITESTS "${LUATESTS}/luaAPI")
+set(TESTSDATADIR "${CMAKE_SOURCE_DIR}/share/hedgewars/Data")
+
+add_test("LuaAPI:GetZoom/SetZoom" "bin/hwengine" "--prefix" "${TESTSDATADIR}" "--lua-test" "${LUATESTS}/luaAPI/zoom_get_set.lua")