# Copyright (C) 2007-2009 LuaDist. # Created by Peter Kapec # 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(objl NONE) CMAKE_MINIMUM_REQUIRED(VERSION 2.6 ) # Where to install module parts: SET (INSTALL_LMOD share/lua/lmod CACHE PATH "Directory to install Lua modules.") SET (INSTALL_DATA . CACHE PATH "Directory the package can store documentation, tests or other data in.") SET (INSTALL_DOC ${INSTALL_DATA}/doc CACHE PATH "Recommended directory to install documentation into.") SET (INSTALL_ETC ${INSTALL_DATA}/etc CACHE PATH "Recommended directory to install additional files, configuration or launch scripts.") SET (INSTALL_EXAMPLE ${INSTALL_DATA}/example CACHE PATH "Recommended directory to install examples into.") SET (INSTALL_TEST ${INSTALL_DATA}/test CACHE PATH "Recommended directory to install tests into.") # Install all files and documentation INSTALL (DIRECTORY lib/ DESTINATION ${INSTALL_LMOD}) INSTALL (FILES AUTHORS CHANGELOG INSTALL LICENSE README THANKS TODO LGPL.txt DESTINATION ${INSTALL_DATA}) INSTALL (DIRECTORY doc/ DESTINATION ${INSTALL_DOC}) INSTALL (DIRECTORY examples/ DESTINATION ${INSTALL_EXAMPLE}) INSTALL (DIRECTORY test/ DESTINATION ${INSTALL_TEST}) INSTALL (DIRECTORY tools/ DESTINATION ${INSTALL_ETC})