|
|
@ -80,13 +80,6 @@ option(USE_FFMPEG "use ffmpeg for sound" ON)
|
|
|
|
# OS X deployment
|
|
|
|
# OS X deployment
|
|
|
|
option(OPENMW_OSX_DEPLOYMENT OFF)
|
|
|
|
option(OPENMW_OSX_DEPLOYMENT OFF)
|
|
|
|
|
|
|
|
|
|
|
|
if(UNIX AND NOT APPLE)
|
|
|
|
|
|
|
|
option(BUILD_WITH_DPKG "enable dpkg-based install for debian and debian derivatives" OFF)
|
|
|
|
|
|
|
|
if(BUILD_WITH_DPKG)
|
|
|
|
|
|
|
|
find_program(DPKG_PROGRAM dpkg DOC "dpkg program of Debian-based systems")
|
|
|
|
|
|
|
|
endif(BUILD_WITH_DPKG)
|
|
|
|
|
|
|
|
endif(UNIX AND NOT APPLE)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Location of morrowind data files
|
|
|
|
# Location of morrowind data files
|
|
|
|
if (APPLE)
|
|
|
|
if (APPLE)
|
|
|
|
set(MORROWIND_DATA_FILES "./data" CACHE PATH "location of Morrowind data files")
|
|
|
|
set(MORROWIND_DATA_FILES "./data" CACHE PATH "location of Morrowind data files")
|
|
|
@ -395,46 +388,36 @@ if (CMAKE_COMPILER_IS_GNUCC)
|
|
|
|
endif (CMAKE_COMPILER_IS_GNUCC)
|
|
|
|
endif (CMAKE_COMPILER_IS_GNUCC)
|
|
|
|
|
|
|
|
|
|
|
|
IF(NOT WIN32 AND NOT APPLE)
|
|
|
|
IF(NOT WIN32 AND NOT APPLE)
|
|
|
|
## Debian and non debian Linux building
|
|
|
|
# Linux building
|
|
|
|
# Paths
|
|
|
|
# Paths
|
|
|
|
IF (DPKG_PROGRAM)
|
|
|
|
SET(BINDIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Where to install binaries")
|
|
|
|
## Debian specific
|
|
|
|
SET(DATAROOTDIR "${CMAKE_INSTALL_PREFIX}/share" CACHE PATH "Sets the root of data directories to a non-default location")
|
|
|
|
SET(CMAKE_INSTALL_PREFIX "/usr")
|
|
|
|
SET(DATADIR "${DATAROOTDIR}/games/openmw" CACHE PATH "Sets the openmw data directories to a non-default location")
|
|
|
|
SET(DATAROOTDIR "share" CACHE PATH "Sets the root of data directories to a non-default location")
|
|
|
|
SET(ICONDIR "${DATAROOTDIR}/pixmaps" CACHE PATH "Set icon dir")
|
|
|
|
SET(DATADIR "share/games/openmw" CACHE PATH "Sets the openmw data directories to a non-default location")
|
|
|
|
SET(LICDIR "${DATAROOTDIR}/licenses/openmw" CACHE PATH "Sets the openmw license directory to a non-default location.")
|
|
|
|
SET(ICONDIR "share/pixmaps" CACHE PATH "Set icon dir")
|
|
|
|
SET(SYSCONFDIR "/etc/openmw" CACHE PATH "Set config dir")
|
|
|
|
SET(SYSCONFDIR "../etc/openmw" CACHE PATH "Set config dir")
|
|
|
|
|
|
|
|
ELSE ()
|
|
|
|
# Install binaries
|
|
|
|
## Non debian specific
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/openmw" DESTINATION "${BINDIR}" )
|
|
|
|
SET(BINDIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Where to install binaries")
|
|
|
|
IF(BUILD_LAUNCHER)
|
|
|
|
SET(DATAROOTDIR "${CMAKE_INSTALL_PREFIX}/share" CACHE PATH "Sets the root of data directories to a non-default location")
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/omwlauncher" DESTINATION "${BINDIR}" )
|
|
|
|
SET(DATADIR "${DATAROOTDIR}/games/openmw" CACHE PATH "Sets the openmw data directories to a non-default location")
|
|
|
|
ENDIF(BUILD_LAUNCHER)
|
|
|
|
SET(ICONDIR "${DATAROOTDIR}/pixmaps" CACHE PATH "Set icon dir")
|
|
|
|
IF(BUILD_BSATOOL)
|
|
|
|
SET(LICDIR "${DATAROOTDIR}/licenses/openmw" CACHE PATH "Sets the openmw license directory to a non-default location.")
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/bsatool" DESTINATION "${BINDIR}" )
|
|
|
|
SET(SYSCONFDIR "/etc/openmw" CACHE PATH "Set config dir")
|
|
|
|
ENDIF(BUILD_BSATOOL)
|
|
|
|
|
|
|
|
IF(BUILD_ESMTOOL)
|
|
|
|
# Install binaries
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/esmtool" DESTINATION "${BINDIR}" )
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/openmw" DESTINATION "${BINDIR}" )
|
|
|
|
ENDIF(BUILD_ESMTOOL)
|
|
|
|
IF(BUILD_LAUNCHER)
|
|
|
|
IF(BUILD_MWINIIMPORTER)
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/omwlauncher" DESTINATION "${BINDIR}" )
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/mwiniimport" DESTINATION "${BINDIR}" )
|
|
|
|
ENDIF(BUILD_LAUNCHER)
|
|
|
|
ENDIF(BUILD_MWINIIMPORTER)
|
|
|
|
IF(BUILD_BSATOOL)
|
|
|
|
IF(BUILD_OPENCS)
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/bsatool" DESTINATION "${BINDIR}" )
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/opencs" DESTINATION "${BINDIR}" )
|
|
|
|
ENDIF(BUILD_BSATOOL)
|
|
|
|
ENDIF(BUILD_OPENCS)
|
|
|
|
IF(BUILD_ESMTOOL)
|
|
|
|
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/esmtool" DESTINATION "${BINDIR}" )
|
|
|
|
# Install licenses
|
|
|
|
ENDIF(BUILD_ESMTOOL)
|
|
|
|
INSTALL(FILES "DejaVu Font License.txt" DESTINATION "${LICDIR}" )
|
|
|
|
IF(BUILD_MWINIIMPORTER)
|
|
|
|
INSTALL(FILES "extern/shiny/License.txt" DESTINATION "${LICDIR}" RENAME "Shiny License.txt" )
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/mwiniimport" DESTINATION "${BINDIR}" )
|
|
|
|
|
|
|
|
ENDIF(BUILD_MWINIIMPORTER)
|
|
|
|
|
|
|
|
IF(BUILD_OPENCS)
|
|
|
|
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/opencs" DESTINATION "${BINDIR}" )
|
|
|
|
|
|
|
|
ENDIF(BUILD_OPENCS)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Install licenses
|
|
|
|
|
|
|
|
INSTALL(FILES "DejaVu Font License.txt" DESTINATION "${LICDIR}" )
|
|
|
|
|
|
|
|
INSTALL(FILES "extern/shiny/License.txt" DESTINATION "${LICDIR}" RENAME "Shiny License.txt" )
|
|
|
|
|
|
|
|
ENDIF (DPKG_PROGRAM)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Install icon and desktop file
|
|
|
|
# Install icon and desktop file
|
|
|
|
INSTALL(FILES "${OpenMW_BINARY_DIR}/openmw.desktop" DESTINATION "${DATAROOTDIR}/applications" PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ COMPONENT "openmw")
|
|
|
|
INSTALL(FILES "${OpenMW_BINARY_DIR}/openmw.desktop" DESTINATION "${DATAROOTDIR}/applications" PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ COMPONENT "openmw")
|
|
|
|