# Copyright (C) 2007-2009 LuaDist. # Created by Peter Drahoš # Redistribution and use of this file is allowed according to the terms of the MIT license. # For details see the COPYRIGHT file distributed with LuaDist. # Please note that the package source code is licensed under its own license. PROJECT (luacurl C) # Where to install module parts: SET (INSTALL_CMOD share/lua/cmod CACHE PATH "Directory to install Lua binary modules.") # Find curl FIND_PACKAGE (CURL REQUIRED) # Find Lua FIND_PACKAGE (Lua51 REQUIRED) # Build INCLUDE_DIRECTORIES( ${LUA_INCLUDE_DIR} ${CURL_INCLUDE_DIR}) ADD_LIBRARY(luacurl MODULE luacurl.c) TARGET_LINK_LIBRARIES(luacurl ${LUA_LIBRARY} ${CURL_LIBRARY}) SET_TARGET_PROPERTIES(luacurl PROPERTIES PREFIX "") # Install all files and documentation INSTALL (TARGETS luacurl DESTINATION ${INSTALL_CMOD})