2007-08-21 10:39:11 -06:00
|
|
|
IF (NOT APPLICATION_NAME)
|
|
|
|
MESSAGE(STATUS "${PROJECT_NAME} is used as APPLICATION_NAME")
|
|
|
|
SET(APPLICATION_NAME ${PROJECT_NAME})
|
|
|
|
ENDIF (NOT APPLICATION_NAME)
|
|
|
|
|
|
|
|
SET(EXEC_INSTALL_PREFIX
|
|
|
|
"${CMAKE_INSTALL_PREFIX}"
|
|
|
|
CACHE PATH "Base directory for executables and libraries"
|
|
|
|
FORCE
|
|
|
|
)
|
2015-08-24 00:02:11 -06:00
|
|
|
|
2017-01-04 18:55:26 -07:00
|
|
|
SET(SHARE_INSTALL_PREFIX
|
|
|
|
"${CMAKE_INSTALL_PREFIX}/share"
|
|
|
|
CACHE PATH "Base directory for files which go to share/"
|
|
|
|
FORCE
|
|
|
|
)
|
|
|
|
|
2007-08-21 10:39:11 -06:00
|
|
|
SET(DATA_INSTALL_PREFIX
|
|
|
|
"${SHARE_INSTALL_PREFIX}/${APPLICATION_NAME}"
|
2015-08-24 00:02:11 -06:00
|
|
|
CACHE PATH "The parent directory where applications can install their data"
|
|
|
|
FORCE
|
|
|
|
)
|
2007-08-21 10:39:11 -06:00
|
|
|
|
|
|
|
SET(BIN_INSTALL_DIR
|
|
|
|
"${EXEC_INSTALL_PREFIX}/bin"
|
|
|
|
CACHE PATH "The ${APPLICATION_NAME} binary install dir (default prefix/bin)"
|
|
|
|
FORCE
|
|
|
|
)
|
2015-08-24 00:02:11 -06:00
|
|
|
|
|
|
|
#***********************************#
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
SET(LOCALSTATE_INSTALL_DIR
|
|
|
|
"${EXEC_INSTALL_PREFIX}/var"
|
|
|
|
CACHE PATH "The ${APPLICATION_NAME} local state install dir (default prefix/var)"
|
|
|
|
FORCE
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
SET(LOCALSTATE_INSTALL_DIR
|
|
|
|
"${EXEC_INSTALL_PREFIX}/var/${APPLICATION_NAME}"
|
|
|
|
CACHE PATH "The ${APPLICATION_NAME} local state install dir (default prefix/var)"
|
|
|
|
FORCE
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
SET(MAN_INSTALL_DIR
|
|
|
|
"${SHARE_INSTALL_PREFIX}/man"
|
|
|
|
CACHE PATH "The ${APPLICATION_NAME} man install dir (default prefix/man)"
|
|
|
|
FORCE
|
|
|
|
)
|
|
|
|
|
2014-08-28 02:06:59 -06:00
|
|
|
if(WIN32)
|
|
|
|
SET(SBIN_INSTALL_DIR
|
|
|
|
"${EXEC_INSTALL_PREFIX}"
|
|
|
|
CACHE PATH "The ${APPLICATION_NAME} sbin install dir (default prefix/sbin)"
|
|
|
|
FORCE
|
|
|
|
)
|
2015-08-24 00:02:11 -06:00
|
|
|
else()
|
2014-08-28 02:06:59 -06:00
|
|
|
SET(SBIN_INSTALL_DIR
|
|
|
|
"${EXEC_INSTALL_PREFIX}/sbin"
|
|
|
|
CACHE PATH "The ${APPLICATION_NAME} sbin install dir (default prefix/sbin)"
|
|
|
|
FORCE
|
|
|
|
)
|
2015-08-24 00:02:11 -06:00
|
|
|
endif()
|
2007-08-21 10:39:11 -06:00
|
|
|
|
2014-05-27 04:46:02 -06:00
|
|
|
if(WIN32)
|
|
|
|
SET(SYSCONF_INSTALL_DIR
|
2014-08-12 08:36:11 -06:00
|
|
|
"${EXEC_INSTALL_PREFIX}/conf"
|
2014-05-27 04:46:02 -06:00
|
|
|
CACHE PATH "The ${APPLICATION_NAME} sysconfig install dir (default conf)"
|
|
|
|
FORCE
|
|
|
|
)
|
2015-08-24 00:02:11 -06:00
|
|
|
else()
|
2014-05-27 04:46:02 -06:00
|
|
|
SET(SYSCONF_INSTALL_DIR
|
2014-08-09 05:51:22 -06:00
|
|
|
"${EXEC_INSTALL_PREFIX}/etc/${APPLICATION_NAME}"
|
2014-05-27 04:46:02 -06:00
|
|
|
CACHE PATH "The ${APPLICATION_NAME} sysconfig install dir (default prefix/etc)"
|
|
|
|
FORCE
|
|
|
|
)
|
2015-08-24 00:02:11 -06:00
|
|
|
endif()
|