equal
deleted
inserted
replaced
|
1 #this file is included only when system Lua library is not found |
|
2 |
1 file(GLOB lua_src *.c *.h) |
3 file(GLOB lua_src *.c *.h) |
2 set(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH}) |
4 set(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH}) |
3 |
5 |
4 IF(APPLE) |
6 if(WIN32) |
5 set(build_type STATIC) |
7 add_definitions(-DLUA_BUILD_AS_DLL) |
6 add_definitions(-DLUA_USE_LINUX) |
8 add_library(lua SHARED ${lua_src}) |
7 add_library (lua ${build_type} ${lua_src}) |
|
8 ENDIF(APPLE) |
|
9 |
9 |
10 IF(WIN32) |
10 set_target_properties(lua PROPERTIES PREFIX "") |
11 set(build_type SHARED) |
11 install(TARGETS lua RUNTIME DESTINATION ${target_dir}) |
12 add_definitions(-DLUA_BUILD_AS_DLL) |
12 else(WIN32) |
13 add_library (lua ${build_type} ${lua_src}) |
13 add_definitions(-DLUA_USE_LINUX) |
14 |
14 add_library(lua STATIC ${lua_src}) |
15 SET_TARGET_PROPERTIES(lua PROPERTIES PREFIX "") |
|
16 install(TARGETS lua RUNTIME DESTINATION ${target_dir}) |
|
17 endif(WIN32) |
15 endif(WIN32) |
18 |
16 |
19 |
17 |
20 |
18 |