author | nemo |
Tue, 15 Nov 2011 00:43:19 -0500 | |
changeset 6385 | e6d30db1e3b0 |
parent 5171 | f9283dc4860d |
child 7031 | d5ea24399a48 |
permissions | -rw-r--r-- |
3697 | 1 |
file(GLOB lua_src *.c *.h) |
2822 | 2 |
set(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH}) |
3 |
||
2812 | 4 |
IF(APPLE) |
2822 | 5 |
set(build_type STATIC) |
2812 | 6 |
add_definitions(-DLUA_USE_LINUX) |
3069 | 7 |
add_library (lua ${build_type} ${lua_src}) |
2812 | 8 |
ENDIF(APPLE) |
2822 | 9 |
|
10 |
IF(WIN32) |
|
11 |
set(build_type SHARED) |
|
12 |
add_definitions(-DLUA_BUILD_AS_DLL) |
|
3069 | 13 |
add_library (lua ${build_type} ${lua_src}) |
2822 | 14 |
|
15 |
SET_TARGET_PROPERTIES(lua PROPERTIES PREFIX "") |
|
3244 | 16 |
install(TARGETS lua RUNTIME DESTINATION ${target_dir}) |
2822 | 17 |
endif(WIN32) |
18 |
||
19 |
||
20 |