misc/liblua/CMakeLists.txt
author dag10 <gottlieb.drew@gmail.com>
Wed, 16 Jan 2013 18:34:43 -0500
changeset 8393 85bd6c7b2641
parent 8316 89232b2fa1d6
child 8330 aaefa587e277
child 9205 abce6011f86c
permissions -rw-r--r--
Can now change theme for static and mission maps. Fixed mission map descriptions that had commas which broke them. Now, you must escape commas in map descriptions. Made bgwidget repaint on animation tick to avoid buffer-not-clearing issue with widgets that change overtop the background leaving a ghost image of the widget's previous state. Generated map is now the default map in the mapconfig widget.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7031
d5ea24399a48 when Lua is not found, fallback to compiling the one that comes bundled in our sources
koda
parents: 5171
diff changeset
     1
#this file is included only when system Lua library is not found
d5ea24399a48 when Lua is not found, fallback to compiling the one that comes bundled in our sources
koda
parents: 5171
diff changeset
     2
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3244
diff changeset
     3
file(GLOB lua_src *.c *.h)
2822
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
     4
7031
d5ea24399a48 when Lua is not found, fallback to compiling the one that comes bundled in our sources
koda
parents: 5171
diff changeset
     5
if(WIN32)
d5ea24399a48 when Lua is not found, fallback to compiling the one that comes bundled in our sources
koda
parents: 5171
diff changeset
     6
    add_definitions(-DLUA_BUILD_AS_DLL)
d5ea24399a48 when Lua is not found, fallback to compiling the one that comes bundled in our sources
koda
parents: 5171
diff changeset
     7
    add_library(lua SHARED ${lua_src})
2822
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
     8
7262
33e703cc7a7f set(LUA_LIBRARY lua.dll) for win32 builds
unc0rr
parents: 7031
diff changeset
     9
    set(LUA_LIBRARY lua.dll)
33e703cc7a7f set(LUA_LIBRARY lua.dll) for win32 builds
unc0rr
parents: 7031
diff changeset
    10
7031
d5ea24399a48 when Lua is not found, fallback to compiling the one that comes bundled in our sources
koda
parents: 5171
diff changeset
    11
    set_target_properties(lua PROPERTIES PREFIX "")
8316
89232b2fa1d6 cmake rework, cleanup a lot of redundant sections, separate library and binary install location, unify osx and win handling of the data directory (tested on win, lin and mac)
koda
parents: 7718
diff changeset
    12
    install(TARGETS lua RUNTIME DESTINATION ${target_library_install_dir})
7031
d5ea24399a48 when Lua is not found, fallback to compiling the one that comes bundled in our sources
koda
parents: 5171
diff changeset
    13
else(WIN32)
d5ea24399a48 when Lua is not found, fallback to compiling the one that comes bundled in our sources
koda
parents: 5171
diff changeset
    14
    add_definitions(-DLUA_USE_LINUX)
d5ea24399a48 when Lua is not found, fallback to compiling the one that comes bundled in our sources
koda
parents: 5171
diff changeset
    15
    add_library(lua STATIC ${lua_src})
7704
b25add2fdfa6 slight tweak to lua linking (that will break everything, i'm sure)
koda
parents: 7262
diff changeset
    16
    set(LUA_LIBRARY lua)
2822
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
    17
endif(WIN32)
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
    18
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
    19
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
    20