misc/liblua/CMakeLists.txt
author koda
Fri, 06 Jan 2012 01:51:04 +0100
changeset 6551 a2f39cb9af62
parent 5171 f9283dc4860d
child 7031 d5ea24399a48
permissions -rw-r--r--
fix a couple of loose ends: sdl_mixer is informed of that OGG is provided by Tremor with its own macro, there is no more a segfault on Tremor cleanup, added new event type and timestamp entry for SDL, removed spurious characters from the japanese translation, uSound errors now are output with SDLTry, uSound doesn't need sound preloading any more
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3697
d5b30d6373fc remove trailing spaces from end of line
koda
parents: 3244
diff changeset
     1
file(GLOB lua_src *.c *.h)
2822
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
     2
set(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH})
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
     3
2812
0a24853de796 add liblua to sources for macosx
koda
parents:
diff changeset
     4
IF(APPLE)
2822
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
     5
	set(build_type STATIC)
2812
0a24853de796 add liblua to sources for macosx
koda
parents:
diff changeset
     6
	add_definitions(-DLUA_USE_LINUX)
3069
smxx
parents: 2929
diff changeset
     7
	add_library (lua ${build_type} ${lua_src})
2812
0a24853de796 add liblua to sources for macosx
koda
parents:
diff changeset
     8
ENDIF(APPLE)
2822
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
     9
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
    10
IF(WIN32)
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
    11
	set(build_type SHARED)
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
    12
	add_definitions(-DLUA_BUILD_AS_DLL)
3069
smxx
parents: 2929
diff changeset
    13
	add_library (lua ${build_type} ${lua_src})
2822
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
    14
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
    15
	SET_TARGET_PROPERTIES(lua PROPERTIES PREFIX "")
3244
smxx
parents: 3069
diff changeset
    16
	install(TARGETS lua RUNTIME DESTINATION ${target_dir})
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