annotate src/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
rev   line source
0
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
1
2
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
2 IF(WIN32)
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
3 SET(luasocket_PLATFORM_SPECIFIC
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
4 ${LuaSocket_SOURCE_DIR}/src/wsocket.h
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
5 ${LuaSocket_SOURCE_DIR}/src/wsocket.c
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
6 )
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
7 ELSEIF(UNIX)
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
8 SET(luasocket_PLATFORM_SPECIFIC
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
9 ${LuaSocket_SOURCE_DIR}/src/usocket.h
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
10 ${LuaSocket_SOURCE_DIR}/src/usocket.c
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
11 )
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
12 ENDIF(WIN32)
0
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
13
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
14 SET(luasocket_SOCKET
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
15 ${LuaSocket_SOURCE_DIR}/src/luasocket.c
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
16 ${LuaSocket_SOURCE_DIR}/src/inet.h
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
17 ${LuaSocket_SOURCE_DIR}/src/inet.c
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
18 ${LuaSocket_SOURCE_DIR}/src/tcp.h
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
19 ${LuaSocket_SOURCE_DIR}/src/tcp.c
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
20 ${LuaSocket_SOURCE_DIR}/src/udp.h
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
21 ${LuaSocket_SOURCE_DIR}/src/udp.c
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
22 ${LuaSocket_SOURCE_DIR}/src/except.h
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
23 ${LuaSocket_SOURCE_DIR}/src/except.c
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
24 ${LuaSocket_SOURCE_DIR}/src/select.h
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
25 ${LuaSocket_SOURCE_DIR}/src/select.c
2
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
26 ${LuaSocket_SOURCE_DIR}/src/timeout.h
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
27 ${LuaSocket_SOURCE_DIR}/src/timeout.c
0
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
28 ${LuaSocket_SOURCE_DIR}/src/buffer.h
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
29 ${LuaSocket_SOURCE_DIR}/src/buffer.c
2
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
30 ${LuaSocket_SOURCE_DIR}/src/io.h
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
31 ${LuaSocket_SOURCE_DIR}/src/io.c
0
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
32 ${LuaSocket_SOURCE_DIR}/src/auxiliar.h
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
33 ${LuaSocket_SOURCE_DIR}/src/auxiliar.c
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
34 ${LuaSocket_SOURCE_DIR}/src/options.h
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
35 ${LuaSocket_SOURCE_DIR}/src/options.c
2
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
36 ${luasocket_PLATFORM_SPECIFIC}
0
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
37 )
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
38
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
39 SET(luasocket_PUBLIC_HEADERS
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
40 ${LuaSocket_SOURCE_DIR}/src/luasocket.h
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
41 )
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
42
2
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
43
0
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
44 SET(luasocket_RESOURCE_FILES
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
45 ${LuaSocket_SOURCE_DIR}/src/http.lua
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
46 ${LuaSocket_SOURCE_DIR}/src/tp.lua
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
47 ${LuaSocket_SOURCE_DIR}/src/ftp.lua
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
48 ${LuaSocket_SOURCE_DIR}/src/smtp.lua
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
49 ${LuaSocket_SOURCE_DIR}/src/url.lua
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
50 )
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
51
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
52 SET(luasocketcommon_RESOURCE_FILES
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
53 ${LuaSocket_SOURCE_DIR}/src/ltn12.lua
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
54 ${LuaSocket_SOURCE_DIR}/src/socket.lua
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
55 ${LuaSocket_SOURCE_DIR}/src/mime.lua
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
56 )
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
57
2
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
58 IF(WANTS_BUILD_MODULE_LIBRARY)
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
59 ADD_LIBRARY(luasocket_library_module MODULE ${luasocket_PUBLIC_HEADERS} ${luasocket_SOCKET})
1
cf0892e34f45 Resyncing with Git repo
Eric Wing <ewing . public |-at-| gmail . com>
parents: 0
diff changeset
60 SET_TARGET_PROPERTIES(luasocket_library_module PROPERTIES
0
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
61 PREFIX ""
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
62 OUTPUT_NAME "core"
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
63 )
1
cf0892e34f45 Resyncing with Git repo
Eric Wing <ewing . public |-at-| gmail . com>
parents: 0
diff changeset
64 TARGET_LINK_LIBRARIES(luasocket_library_module ${LUA_LIBRARIES} ${LUASOCKET_LINK_FLAGS})
cf0892e34f45 Resyncing with Git repo
Eric Wing <ewing . public |-at-| gmail . com>
parents: 0
diff changeset
65 SET_TARGET_PROPERTIES(luasocket_library_module PROPERTIES COMPILE_FLAGS "${LUASOCKET_C_FLAGS}")
2
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
66
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
67 ENDIF(WANTS_BUILD_MODULE_LIBRARY)
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
68
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
69 IF(WANTS_BUILD_STATIC_LIBRARY)
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
70 ADD_LIBRARY(luasocket_library_static STATIC ${luasocket_PUBLIC_HEADERS} ${luasocket_SOCKET})
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
71 SET_TARGET_PROPERTIES(luasocket_library_static PROPERTIES OUTPUT_NAME "luasocket")
0
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
72 SET_TARGET_PROPERTIES(luasocket_library_static PROPERTIES COMPILE_FLAGS "${LUASOCKET_C_FLAGS}")
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
73 TARGET_LINK_LIBRARIES(luasocket_library_static ${LUA_LIBRARIES} ${LUASOCKET_LINK_FLAGS})
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
74
2
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
75
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
76 ENDIF(WANTS_BUILD_STATIC_LIBRARY)
0
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
77
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
78
2
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
79 IF(WANTS_BUILD_STATIC_LIBRARY)
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
80 INSTALL(TARGETS
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
81 luasocket_library_static
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
82 # RUNTIME DESTINATION bin
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
83 LIBRARY DESTINATION lib
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
84 ARCHIVE DESTINATION lib
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
85 # ARCHIVE DESTINATION lib/static
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
86 )
0
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
87
2
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
88 ENDIF(WANTS_BUILD_STATIC_LIBRARY)
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
89
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
90 IF(WANTS_BUILD_MODULE_LIBRARY)
1
cf0892e34f45 Resyncing with Git repo
Eric Wing <ewing . public |-at-| gmail . com>
parents: 0
diff changeset
91 INSTALL(TARGETS luasocket_library_module DESTINATION ${LUAPACKAGE_CDIR}/socket)
2
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
92 ENDIF(WANTS_BUILD_MODULE_LIBRARY)
0
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
93
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
94 INSTALL(FILES ${luasocket_PUBLIC_HEADERS} DESTINATION include)
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
95
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
96 INSTALL(FILES ${luasocket_RESOURCE_FILES} DESTINATION ${LUAPACKAGE_LDIR}/socket)
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
97 INSTALL(FILES ${luasocketcommon_RESOURCE_FILES} DESTINATION ${LUAPACKAGE_LDIR})
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
98
4b915342e2a8 LuaSocket 2.0.2 + CMake build description.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff changeset
99 ADD_SUBDIRECTORY(mime)
2
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
100 IF(UNIX)
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
101 ADD_SUBDIRECTORY(unix)
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
102 ENDIF(UNIX)
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
103
9d9266316a91 Resync with Git
Eric Wing <ewing . public |-at-| gmail . com>
parents: 1
diff changeset
104