[asterisk-scf-commits] asterisk-scf/release/cmake.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Mon Jan 10 17:44:17 CST 2011
branch "master" has been updated
via e5b3aebd2f8feb16bfcf4a8984cf7dea543e8496 (commit)
from 24c4357778cdb9591d003130319ef028367c8c31 (commit)
Summary of changes:
AsteriskSCF.cmake | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 51 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit e5b3aebd2f8feb16bfcf4a8984cf7dea543e8496
Author: David M. Lee <dlee at digium.com>
Date: Mon Jan 10 11:37:45 2011 -0600
Set variables for installation directories.
diff --git a/AsteriskSCF.cmake b/AsteriskSCF.cmake
index 4a986d3..c4831c5 100644
--- a/AsteriskSCF.cmake
+++ b/AsteriskSCF.cmake
@@ -55,6 +55,57 @@ if(NOT integrated_build)
message(FATAL_ERROR "This project can not be built in a non-integrated fashion. Please use the gitall script present in the gitall repository.")
endif()
+# installation directories (these are all relative to ${CMAKE_INSTALL_PREFIX})
+set(INSTALL_SYS_CONF_DIR etc CACHE FILEPATH
+ "read-only data files that pertain to a single machine")
+set(INSTALL_BIN_DIR bin CACHE FILEPATH
+ "executable programs that users can run")
+set(INSTALL_LIB_DIR lib CACHE FILEPATH
+ "object files and libraries of object code")
+set(INSTALL_DATA_ROOT_DIR share CACHE FILEPATH
+ "read-only architecture-independent data files")
+set(INSTALL_DATA_DIR ${INSTALL_DATA_ROOT_DIR} CACHE FILEPATH
+ "idiosyncratic read-only architecture-independent data files for this program")
+set(INSTALL_INCLUDE_DIR include CACHE FILEPATH
+ "directory for installing header files")
+set(INSTALL_LOCAL_STATE_DIR var CACHE FILEPATH
+ "data files which the programs modify while they run, and that pertain to one specific machine")
+
+set(ASTERISK_SCF_INSTALL_CONF_DIR ${INSTALL_SYS_CONF_DIR}/asterisk-scf
+ CACHE FILEPATH "AsteriskSCF files")
+set(ASTERISK_SCF_INSTALL_BIN_DIR ${INSTALL_BIN_DIR} CACHE FILEPATH
+ "AsteriskSCF executable programs")
+set(ASTERISK_SCF_INSTALL_LIB_DIR ${INSTALL_LIB_DIR} CACHE FILEPATH
+ "AsteriskSCF libraries")
+set(ASTERISK_SCF_INSTALL_ICEBOX_DIR ${INSTALL_LIB_DIR}/asterisk-scf/icebox
+ CACHE FILEPATH "AsteriskSCF Icebox modules")
+set(ASTERISK_SCF_INSTALL_LOCAL_STATE_DIR
+ ${INSTALL_LOCAL_STATE_DIR}/lib/asterisk-scf CACHE FILEPATH
+ "AsteriskSCF local state files")
+set(ASTERISK_SCF_INSTALL_LOG_FILE ${INSTALL_LOCAL_STATE_DIR}/log/asterisk-scf.log
+ CACHE FILEPATH "AsteriskSCF logfile")
+set(ASTERISK_SCF_INSTALL_INCLUDE_DIR ${INSTALL_INCLUDE_DIR} CACHE FILEPATH
+ "AsteriskSCF directory for installing include files")
+set(ASTERISK_SCF_INSTALL_SLICE_DIR ${INSTALL_DATA_DIR}/asterisk-scf/slice
+ CACHE FILEPATH "AsteriskSCF directory for installing slice files")
+
+mark_as_advanced(
+ INSTALL_SYS_CONF_DIR
+ INSTALL_BIN_DIR
+ INSTALL_LIB_DIR
+ INSTALL_DATA_ROOT_DIR
+ INSTALL_DATA_DIR
+ INSTALL_INCLUDE_DIR
+ INSTALL_LOCAL_STATE_DIR
+ ASTERISK_SCF_INSTALL_CONF_DIR
+ ASTERISK_SCF_INSTALL_BIN_DIR
+ ASTERISK_SCF_INSTALL_LIB_DIR
+ ASTERISK_SCF_INSTALL_ICEBOX_DIR
+ ASTERISK_SCF_INSTALL_LOCAL_STATE_DIR
+ ASTERISK_SCF_INSTALL_LOG_FILE
+ ASTERISK_SCF_INSTALL_INCLUDE_DIR
+ ASTERISK_SCF_INSTALL_SLICE_DIR)
+
# Use a compile test to see if shared_ptr is supported. If present then C++0x support exists.
if(CMAKE_COMPILER_IS_GNUCXX)
try_compile(SHARED_PTR_PRESENT
-----------------------------------------------------------------------
--
asterisk-scf/release/cmake.git
More information about the asterisk-scf-commits
mailing list