2822
|
1 |
file(GLOB lua_src *.c *.h)
|
|
2 |
set(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH})
|
|
3 |
|
2812
|
4 |
IF(APPLE)
|
|
5 |
set(CMAKE_OSX_ARCHITECTURES "x86_64;i386;ppc7400")
|
|
6 |
|
2822
|
7 |
set(build_type STATIC)
|
2812
|
8 |
add_definitions(-DLUA_USE_LINUX)
|
|
9 |
ENDIF(APPLE)
|
2822
|
10 |
|
|
11 |
IF(WIN32)
|
|
12 |
set(build_type SHARED)
|
|
13 |
add_definitions(-DLUA_BUILD_AS_DLL)
|
|
14 |
ENDIF(WIN32)
|
|
15 |
|
|
16 |
add_library (lua ${build_type} ${lua_src})
|
|
17 |
|
|
18 |
if(WIN32)
|
|
19 |
SET_TARGET_PROPERTIES(lua PROPERTIES PREFIX "")
|
|
20 |
install(TARGETS lua DESTINATION ${target_dir})
|
|
21 |
endif(WIN32)
|
|
22 |
|
|
23 |
|
|
24 |
|