|
|
|
@ -53,18 +53,16 @@ option(OPENMW_OSX_DEPLOYMENT OFF)
|
|
|
|
|
find_program(DPKG_PROGRAM dpkg DOC "dpkg program of Debian-based systems")
|
|
|
|
|
|
|
|
|
|
# Location of morrowind data files
|
|
|
|
|
if(DPKG_PROGRAM)
|
|
|
|
|
if (APPLE)
|
|
|
|
|
set(MORROWIND_DATA_FILES "./data" CACHE PATH "location of Morrowind data files")
|
|
|
|
|
set(MORROWIND_RESOURCE_FILES "./resources" CACHE PATH "location of OpenMW resources files")
|
|
|
|
|
elseif(UNIX)
|
|
|
|
|
set(MORROWIND_DATA_FILES "/usr/share/games/openmw/data/" CACHE PATH "location of Morrowind data files")
|
|
|
|
|
set(MORROWIND_RESOURCE_FILES "/usr/share/games/openmw/resources/" CACHE PATH "location of OpenMW resources files")
|
|
|
|
|
else()
|
|
|
|
|
if (APPLE)
|
|
|
|
|
set(MORROWIND_DATA_FILES "./data" CACHE PATH "location of Morrowind data files")
|
|
|
|
|
set(MORROWIND_RESOURCE_FILES "./resources" CACHE PATH "location of OpenMW resources files")
|
|
|
|
|
else()
|
|
|
|
|
set(MORROWIND_DATA_FILES "data" CACHE PATH "location of Morrowind data files")
|
|
|
|
|
set(MORROWIND_RESOURCE_FILES "resources" CACHE PATH "location of OpenMW resources files")
|
|
|
|
|
endif(APPLE)
|
|
|
|
|
endif(DPKG_PROGRAM)
|
|
|
|
|
set(MORROWIND_DATA_FILES "data" CACHE PATH "location of Morrowind data files")
|
|
|
|
|
set(MORROWIND_RESOURCE_FILES "resources" CACHE PATH "location of OpenMW resources files")
|
|
|
|
|
endif(APPLE)
|
|
|
|
|
|
|
|
|
|
if (WIN32)
|
|
|
|
|
option(USE_DEBUG_CONSOLE "whether a debug console should be enabled for debug builds, if false debug output is redirected to Visual Studio output" ON)
|
|
|
|
|