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 |
|