|
|
@ -432,42 +432,22 @@ if(WIN32)
|
|
|
|
"${OpenMW_BINARY_DIR}/settings-default.cfg"
|
|
|
|
"${OpenMW_BINARY_DIR}/settings-default.cfg"
|
|
|
|
"${OpenMW_BINARY_DIR}/gamecontrollerdb.txt"
|
|
|
|
"${OpenMW_BINARY_DIR}/gamecontrollerdb.txt"
|
|
|
|
DESTINATION ".")
|
|
|
|
DESTINATION ".")
|
|
|
|
INSTALL(FILES "${OpenMW_BINARY_DIR}/Debug/openmw.exe" DESTINATION "." CONFIGURATIONS Debug)
|
|
|
|
|
|
|
|
INSTALL(FILES "${OpenMW_BINARY_DIR}/Release/openmw.exe" DESTINATION "." CONFIGURATIONS Release;RelWithDebInfo;MinSizeRel)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IF(BUILD_LAUNCHER)
|
|
|
|
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/Debug/openmw-launcher.exe" DESTINATION "." CONFIGURATIONS Debug)
|
|
|
|
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/Release/openmw-launcher.exe" DESTINATION "." CONFIGURATIONS Release;RelWithDebInfo;MinSizeRel)
|
|
|
|
|
|
|
|
ENDIF(BUILD_LAUNCHER)
|
|
|
|
|
|
|
|
IF(BUILD_MWINIIMPORTER)
|
|
|
|
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/Debug/openmw-iniimporter.exe" DESTINATION "." CONFIGURATIONS Debug)
|
|
|
|
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/Release/openmw-iniimporter.exe" DESTINATION "." CONFIGURATIONS Release;RelWithDebInfo;MinSizeRel)
|
|
|
|
|
|
|
|
ENDIF(BUILD_MWINIIMPORTER)
|
|
|
|
|
|
|
|
IF(BUILD_ESSIMPORTER)
|
|
|
|
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/Debug/openmw-essimporter.exe" DESTINATION "." CONFIGURATIONS Debug)
|
|
|
|
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/Release/openmw-essimporter.exe" DESTINATION "." CONFIGURATIONS Release;RelWithDebInfo;MinSizeRel)
|
|
|
|
|
|
|
|
ENDIF(BUILD_ESSIMPORTER)
|
|
|
|
|
|
|
|
IF(BUILD_OPENCS)
|
|
|
|
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/Debug/openmw-cs.exe" DESTINATION "." CONFIGURATIONS Debug)
|
|
|
|
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/Release/openmw-cs.exe" DESTINATION "." CONFIGURATIONS Release;RelWithDebInfo;MinSizeRel)
|
|
|
|
|
|
|
|
INSTALL(FILES "${OpenMW_BINARY_DIR}/openmw-cs.cfg" DESTINATION ".")
|
|
|
|
|
|
|
|
ENDIF(BUILD_OPENCS)
|
|
|
|
|
|
|
|
IF(BUILD_WIZARD)
|
|
|
|
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/Debug/openmw-wizard.exe" DESTINATION "." CONFIGURATIONS Debug)
|
|
|
|
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/Release/openmw-wizard.exe" DESTINATION "." CONFIGURATIONS Release;RelWithDebInfo;MinSizeRel)
|
|
|
|
|
|
|
|
ENDIF(BUILD_WIZARD)
|
|
|
|
|
|
|
|
if(BUILD_MYGUI_PLUGIN)
|
|
|
|
if(BUILD_MYGUI_PLUGIN)
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/Debug/Plugin_MyGUI_OpenMW_Resources.dll" DESTINATION "." CONFIGURATIONS Debug)
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/Debug/Plugin_MyGUI_OpenMW_Resources.dll" DESTINATION "." CONFIGURATIONS Debug)
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/Release/Plugin_MyGUI_OpenMW_Resources.dll" DESTINATION "." CONFIGURATIONS Release;RelWithDebInfo;MinSizeRel)
|
|
|
|
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/Release/Plugin_MyGUI_OpenMW_Resources.dll" DESTINATION "." CONFIGURATIONS Release;RelWithDebInfo;MinSizeRel)
|
|
|
|
ENDIF(BUILD_MYGUI_PLUGIN)
|
|
|
|
ENDIF(BUILD_MYGUI_PLUGIN)
|
|
|
|
|
|
|
|
|
|
|
|
IF(DESIRED_QT_VERSION MATCHES 5)
|
|
|
|
IF(DESIRED_QT_VERSION MATCHES 5)
|
|
|
|
INSTALL(DIRECTORY "${OpenMW_BINARY_DIR}/Release/platforms" DESTINATION ".")
|
|
|
|
INSTALL(DIRECTORY "${OpenMW_BINARY_DIR}/Debug/platforms" DESTINATION "." CONFIGURATIONS Debug)
|
|
|
|
|
|
|
|
INSTALL(DIRECTORY "${OpenMW_BINARY_DIR}/Release/platforms" DESTINATION "." CONFIGURATIONS Release;RelWithDebInfo;MinSizeRel)
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
INSTALL(DIRECTORY "${OpenMW_BINARY_DIR}/resources" DESTINATION ".")
|
|
|
|
INSTALL(DIRECTORY "${OpenMW_BINARY_DIR}/resources" DESTINATION ".")
|
|
|
|
FILE(GLOB plugin_dir "${OpenMW_BINARY_DIR}/Release/osgPlugins-*")
|
|
|
|
FILE(GLOB plugin_dir_debug "${OpenMW_BINARY_DIR}/Debug/osgPlugins-*")
|
|
|
|
INSTALL(DIRECTORY ${plugin_dir} DESTINATION ".")
|
|
|
|
FILE(GLOB plugin_dir_release "${OpenMW_BINARY_DIR}/Release/osgPlugins-*")
|
|
|
|
|
|
|
|
INSTALL(DIRECTORY ${plugin_dir_debug} DESTINATION "." CONFIGURATIONS Debug)
|
|
|
|
|
|
|
|
INSTALL(DIRECTORY ${plugin_dir_release} DESTINATION "." CONFIGURATIONS Release;RelWithDebInfo;MinSizeRel)
|
|
|
|
|
|
|
|
|
|
|
|
SET(CPACK_GENERATOR "NSIS")
|
|
|
|
SET(CPACK_GENERATOR "NSIS")
|
|
|
|
SET(CPACK_PACKAGE_NAME "OpenMW")
|
|
|
|
SET(CPACK_PACKAGE_NAME "OpenMW")
|
|
|
|