cmake_modules/FindLua.cmake
author smxx
Sat, 06 Mar 2010 13:55:58 +0000
changeset 2958 e6f7620da87e
parent 2925 d088b5f813c9
child 3014 2b4116a8bdb0
child 3067 330e60f5dde8
permissions -rw-r--r--
Engine: * Changed order of game goals * Added texture drawing (based on pixel width/height; unused in HEAD right now but working on some ideas) * Added comments to trainings
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2924
908851e59958 Engine:
smxx
parents:
diff changeset
     1
# Find the Lua library
908851e59958 Engine:
smxx
parents:
diff changeset
     2
#
908851e59958 Engine:
smxx
parents:
diff changeset
     3
2925
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
     4
IF(NOT LUA_LIBRARY)
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
     5
	IF(WIN32)
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
     6
		set(LUA_DEFAULT lua.dll)
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
     7
	ELSE(WIN32)
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
     8
		IF(APPLE)
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
     9
			set(LUA_DEFAULT lua)
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
    10
		ELSE(APPLE)
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
    11
			set(LUA_DEFAULT lua5.1.so)
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
    12
		ENDIF(APPLE)
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
    13
	ENDIF(WIN32)
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
    14
	SET(LUA_LIBRARY ${LUA_DEFAULT} CACHE STRING "Lua library to link to; file name without path only!")
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
    15
ENDIF(NOT LUA_LIBRARY)