misc/liblua/CMakeLists.txt
author nemo
Thu, 01 Jul 2010 23:41:10 -0400
changeset 3608 c509bbc779e7
parent 3244 654795439cf8
child 3697 d5b30d6373fc
permissions -rw-r--r--
Revert prior attempted optimisation. Gridding the land pays in some situations, but not all. Restricting to an upper bound might help, but overall, seems too fuzzy to be worth it. On one side is increased cost of Add/Delete + extra test on collision check, on the other is skipping the list iteration. Perhaps for large lists.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2822
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
     1
file(GLOB lua_src *.c *.h) 
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)
2929
dd4efe601bc6 restore tiger 10.4 deployment
koda
parents: 2822
diff changeset
     5
#	set(CMAKE_OSX_ARCHITECTURES "x86_64;i386;ppc7400")	
2812
0a24853de796 add liblua to sources for macosx
koda
parents:
diff changeset
     6
	
2822
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
     7
	set(build_type STATIC)
2812
0a24853de796 add liblua to sources for macosx
koda
parents:
diff changeset
     8
	add_definitions(-DLUA_USE_LINUX)
3069
smxx
parents: 2929
diff changeset
     9
	add_library (lua ${build_type} ${lua_src})
2812
0a24853de796 add liblua to sources for macosx
koda
parents:
diff changeset
    10
ENDIF(APPLE)
2822
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
    11
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
    12
IF(WIN32)
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
    13
	set(build_type SHARED)
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
    14
	add_definitions(-DLUA_BUILD_AS_DLL)
3069
smxx
parents: 2929
diff changeset
    15
	add_library (lua ${build_type} ${lua_src})
2822
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
    16
ENDIF(WIN32)
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
    17
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
    18
if(WIN32)
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
    19
	SET_TARGET_PROPERTIES(lua PROPERTIES PREFIX "")
3244
smxx
parents: 3069
diff changeset
    20
	install(TARGETS lua RUNTIME DESTINATION ${target_dir})
2822
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
    21
endif(WIN32)
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
    22
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
    23
0533562bc3a4 Engine:
smxx
parents: 2812
diff changeset
    24