Mercurial > luasocket
comparison src/mime/CMakeLists.txt @ 2:9d9266316a91
Resync with Git
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Fri, 29 Aug 2008 22:48:39 -0700 |
parents | cf0892e34f45 |
children |
comparison
equal
deleted
inserted
replaced
1:cf0892e34f45 | 2:9d9266316a91 |
---|---|
14 # handled in above script | 14 # handled in above script |
15 # ${LuaSocket_SOURCE_DIR}/src/mime.lua | 15 # ${LuaSocket_SOURCE_DIR}/src/mime.lua |
16 ) | 16 ) |
17 | 17 |
18 | 18 |
19 IF(WANTS_BUILD_SHARED_LIBRARY) | 19 IF(WANTS_BUILD_MODULE_LIBRARY) |
20 ADD_LIBRARY(luamime_library_module MODULE ${luasocket_MIME_PUBLIC_HEADERS} ${luasocket_MIME}) | 20 ADD_LIBRARY(luamime_library_module MODULE ${luasocket_MIME_PUBLIC_HEADERS} ${luasocket_MIME}) |
21 SET_TARGET_PROPERTIES(luamime_library_module PROPERTIES | 21 SET_TARGET_PROPERTIES(luamime_library_module PROPERTIES |
22 PREFIX "" | 22 PREFIX "" |
23 OUTPUT_NAME "core" | 23 OUTPUT_NAME "core" |
24 ) | 24 ) |
25 SET_TARGET_PROPERTIES(luamime_library_module PROPERTIES COMPILE_FLAGS "${LUASOCKET_C_FLAGS}") | 25 SET_TARGET_PROPERTIES(luamime_library_module PROPERTIES COMPILE_FLAGS "${LUASOCKET_C_FLAGS}") |
26 TARGET_LINK_LIBRARIES(luamime_library_module ${LUA_LIBRARIES} ${LUASOCKET_LINK_FLAGS}) | 26 TARGET_LINK_LIBRARIES(luamime_library_module ${LUA_LIBRARIES} ${LUASOCKET_LINK_FLAGS}) |
27 ENDIF(WANTS_BUILD_SHARED_LIBRARY) | 27 ENDIF(WANTS_BUILD_MODULE_LIBRARY) |
28 #IF(WANTS_BUILD_STATIC_LIBRARY) | 28 |
29 IF(WANTS_BUILD_STATIC_LIBRARY) | |
29 ADD_LIBRARY(luamime_library_static STATIC ${luasocket_MIME_PUBLIC_HEADERS} ${luasocket_MIME}) | 30 ADD_LIBRARY(luamime_library_static STATIC ${luasocket_MIME_PUBLIC_HEADERS} ${luasocket_MIME}) |
30 SET_TARGET_PROPERTIES(luamime_library_static PROPERTIES OUTPUT_NAME "mime") | 31 SET_TARGET_PROPERTIES(luamime_library_static PROPERTIES OUTPUT_NAME "luasocketmime") |
31 SET_TARGET_PROPERTIES(luamime_library_static PROPERTIES COMPILE_FLAGS "${LUASOCKET_C_FLAGS}") | 32 SET_TARGET_PROPERTIES(luamime_library_static PROPERTIES COMPILE_FLAGS "${LUASOCKET_C_FLAGS}") |
32 TARGET_LINK_LIBRARIES(luamime_library_static ${LUA_LIBRARIES} ${LUASOCKET_LINK_FLAGS}) | 33 TARGET_LINK_LIBRARIES(luamime_library_static ${LUA_LIBRARIES} ${LUASOCKET_LINK_FLAGS}) |
33 #ENDIF(WANTS_BUILD_STATIC_LIBRARY) | 34 ENDIF(WANTS_BUILD_STATIC_LIBRARY) |
34 | 35 |
35 INSTALL(TARGETS | 36 IF(WANTS_BUILD_STATIC_LIBRARY) |
36 luamime_library_static | 37 INSTALL(TARGETS |
37 RUNTIME DESTINATION bin | 38 luamime_library_static |
38 LIBRARY DESTINATION lib | 39 # RUNTIME DESTINATION bin |
39 ARCHIVE DESTINATION lib | 40 LIBRARY DESTINATION lib |
40 # ARCHIVE DESTINATION lib/static | 41 ARCHIVE DESTINATION lib |
41 ) | 42 # ARCHIVE DESTINATION lib/static |
43 ) | |
44 ENDIF(WANTS_BUILD_STATIC_LIBRARY) | |
42 | 45 |
43 IF(WANTS_BUILD_SHARED_LIBRARY) | 46 IF(WANTS_BUILD_MODULE_LIBRARY) |
44 INSTALL(TARGETS luamime_library_module DESTINATION ${LUAPACKAGE_CDIR}/mime) | 47 INSTALL(TARGETS luamime_library_module DESTINATION ${LUAPACKAGE_CDIR}/mime) |
45 ENDIF(WANTS_BUILD_SHARED_LIBRARY) | 48 ENDIF(WANTS_BUILD_MODULE_LIBRARY) |
46 | 49 |
47 INSTALL(FILES ${luamime_RESOURCE_FILES} DESTINATION ${LUAPACKAGE_LDIR}/mime) | 50 INSTALL(FILES ${luamime_RESOURCE_FILES} DESTINATION ${LUAPACKAGE_LDIR}/mime) |
48 INSTALL(FILES ${luasocket_MIME_PUBLIC_HEADERS} DESTINATION include) | 51 INSTALL(FILES ${luasocket_MIME_PUBLIC_HEADERS} DESTINATION include) |
49 | 52 |
50 | 53 |