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