misc/liblua/CMakeLists.txt
author koda
Mon, 15 Feb 2010 19:49:20 +0000
changeset 2812 0a24853de796
child 2822 0533562bc3a4
permissions -rw-r--r--
add liblua to sources for macosx
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2812
0a24853de796 add liblua to sources for macosx
koda
parents:
diff changeset
     1
IF(APPLE)
0a24853de796 add liblua to sources for macosx
koda
parents:
diff changeset
     2
	file(GLOB lua_src *.c *.h) 
0a24853de796 add liblua to sources for macosx
koda
parents:
diff changeset
     3
	set(CMAKE_OSX_ARCHITECTURES "x86_64;i386;ppc7400")	
0a24853de796 add liblua to sources for macosx
koda
parents:
diff changeset
     4
	
0a24853de796 add liblua to sources for macosx
koda
parents:
diff changeset
     5
	set (build_type STATIC)
0a24853de796 add liblua to sources for macosx
koda
parents:
diff changeset
     6
	add_definitions(-DLUA_USE_LINUX)
0a24853de796 add liblua to sources for macosx
koda
parents:
diff changeset
     7
	add_library (lua ${build_type} ${lua_src})
0a24853de796 add liblua to sources for macosx
koda
parents:
diff changeset
     8
ENDIF(APPLE)