cmake_modules/FindLua.cmake
author smxx
Wed, 24 Mar 2010 23:31:13 +0000
changeset 3061 e129e4c3f30e
parent 2925 d088b5f813c9
child 3014 2b4116a8bdb0
child 3067 330e60f5dde8
permissions -rw-r--r--
Frontend: * Updated game scheme page * Removed text labels from toggle buttons (looked ugly on smaller resolutions)
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)