comparison CMakeLists.txt @ 1:cf0892e34f45

Resyncing with Git repo
author Eric Wing <ewing . public |-at-| gmail . com>
date Wed, 27 Aug 2008 22:44:22 -0700
parents 4b915342e2a8
children 9d9266316a91
comparison
equal deleted inserted replaced
0:4b915342e2a8 1:cf0892e34f45
1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6) 1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2
2 PROJECT(LuaSocket) 3 PROJECT(LuaSocket)
3 4
4 IF(USING_LUA_MULTI_SET) 5 IF(USING_LUA_MULTI_SET)
5 IF(NOT LUA_LIBRARIES) 6 IF(NOT LUA_LIBRARIES)
6 IF(lua_library_dynamic) 7 IF(lua_library_module)
7 SET(LUA_LIBRARIES lua_library_dynamic) 8 SET(LUA_LIBRARIES lua_library_module)
8 ELSE(lua_library_dynamic) 9 ELSE(lua_library_module)
9 SET(LUA_LIBRARIES lua_library_static) 10 SET(LUA_LIBRARIES lua_library_static)
10 ENDIF(lua_library_dynamic) 11 ENDIF(lua_library_module)
11 ENDIF(NOT LUA_LIBRARIES) 12 ENDIF(NOT LUA_LIBRARIES)
12 IF(NOT LUA_INCLUDE_DIR) 13 IF(NOT LUA_INCLUDE_DIR)
13 SET(LUA_INCLUDE_DIR ${Lua_SOURCE_DIR}/src) 14 SET(LUA_INCLUDE_DIR ${Lua_SOURCE_DIR}/src)
14 ENDIF(NOT LUA_INCLUDE_DIR) 15 ENDIF(NOT LUA_INCLUDE_DIR)
15 ELSE(USING_LUA_MULTI_SET) 16 ELSE(USING_LUA_MULTI_SET)
16 FIND_PACKAGE(Lua51 REQUIRED) 17 FIND_PACKAGE(Lua51 REQUIRED)
17 ENDIF(USING_LUA_MULTI_SET) 18 ENDIF(USING_LUA_MULTI_SET)
18 19
19 OPTION(WANTS_BUILD_SHARED_LIBRARY "Set to ON to build dynamic library." ON) 20 OPTION(WANTS_BUILD_SHARED_LIBRARY "Set to ON to build dynamic library." ON)
20 #OPTION(WANTS_BUILD_STATIC_LIBRARY "Set to ON to build static library." ON) 21 #OPTION(WANTS_BUILD_STATIC_LIBRARY "Set to ON to build static library." ON)
21 OPTION(WANTS_BUILD_FRAMEWORK "Set to ON to build framework instead of dylib. Only valid if BUILD_SHARED_LIBRARY is ON an is OS X." ON)
22 22
23 SET(LUAPACKAGE_CDIR "lib/lua/5.1" CACHE STRING "Path for Lua packaged platform specific things.") 23 SET(LUAPACKAGE_CDIR "lib/lua/5.1" CACHE STRING "Path for Lua packaged platform specific things.")
24 SET(LUAPACKAGE_LDIR "share/lua/5.1" CACHE STRING "Path for Lua packages platform independent things.") 24 SET(LUAPACKAGE_LDIR "share/lua/5.1" CACHE STRING "Path for Lua packages platform independent things.")
25 25
26 IF(APPLE) 26 IF(APPLE)
35 ) 35 )
36 36
37 37
38 38
39 #IF(WANTS_BUILD_SHARED_LIBRARY AND WANTS_BUILD_FRAMEWORK) 39 #IF(WANTS_BUILD_SHARED_LIBRARY AND WANTS_BUILD_FRAMEWORK)
40 # SET_TARGET_PROPERTIES(luasocket_library_dynamic PROPERTIES 40 # SET_TARGET_PROPERTIES(luasocket_library_module PROPERTIES
41 # FRAMEWORK TRUE 41 # FRAMEWORK TRUE
42 # # FRAMEWORK_VERSION 5.1 42 # # FRAMEWORK_VERSION 5.1
43 # # PRIVATE_HEADER "fooPrivate.h;fooBoth.h" 43 # # PRIVATE_HEADER "fooPrivate.h;fooBoth.h"
44 # PUBLIC_HEADER "${luasocket_PUBLIC_HEADERS}" 44 # PUBLIC_HEADER "${luasocket_PUBLIC_HEADERS}"
45 # RESOURCE "${RESOURCE_FILES}" 45 # RESOURCE "${RESOURCE_FILES}"
46 # INSTALL_NAME_DIR "@executable_path/../Frameworks" 46 # INSTALL_NAME_DIR "@executable_path/../Frameworks"
47 # BUILD_WITH_INSTALL_RPATH 1 # FIXME: User option or Xcode=1 47 # BUILD_WITH_INSTALL_RPATH 1 # FIXME: User option or Xcode=1
48 # ) 48 # )
49 #ENDIF(WANTS_BUILD_SHARED_LIBRARY AND WANTS_BUILD_FRAMEWORK) 49 #ENDIF(WANTS_BUILD_SHARED_LIBRARY AND WANTS_BUILD_FRAMEWORK)
50 50
51 #SET_TARGET_PROPERTIES(luasocket_library_dynamic PROPERTIES 51 #SET_TARGET_PROPERTIES(luasocket_library_module PROPERTIES
52 # PUBLIC_HEADER "${luasocket_PUBLIC_HEADERS}" 52 # PUBLIC_HEADER "${luasocket_PUBLIC_HEADERS}"
53 # RESOURCE "${luasocket_RESOURCE_FILES}" 53 # RESOURCE "${luasocket_RESOURCE_FILES}"
54 #) 54 #)
55 55
56 56