2014-09-05 10:30:50 +00:00
|
|
|
set (OPENCS_SRC main.cpp
|
2014-09-05 12:36:33 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/files/windows/opencs.rc
|
2014-09-05 10:30:50 +00:00
|
|
|
)
|
2012-11-21 16:31:18 +00:00
|
|
|
|
2013-02-03 12:30:40 +00:00
|
|
|
opencs_units (. editor)
|
2012-11-22 12:30:02 +00:00
|
|
|
|
2013-02-03 12:30:40 +00:00
|
|
|
opencs_units (model/doc
|
2015-03-14 11:00:24 +00:00
|
|
|
document operation saving documentmanager loader runner operationholder
|
2013-02-03 12:30:40 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
opencs_units_noqt (model/doc
|
2014-12-07 17:57:47 +00:00
|
|
|
stage savingstate savingstages blacklist messages
|
2013-02-03 12:30:40 +00:00
|
|
|
)
|
2012-12-08 10:59:13 +00:00
|
|
|
|
2013-02-03 12:30:40 +00:00
|
|
|
opencs_hdrs_noqt (model/doc
|
|
|
|
state
|
|
|
|
)
|
2012-11-24 12:17:21 +00:00
|
|
|
|
2012-12-11 14:35:47 +00:00
|
|
|
|
2013-02-03 12:30:40 +00:00
|
|
|
opencs_units (model/world
|
2017-10-02 19:56:22 +00:00
|
|
|
idtable idtableproxymodel regionmap data commanddispatcher idtablebase resourcetable nestedtableproxymodel idtree infotableproxymodel landtexturetableproxymodel
|
2018-07-28 17:23:43 +00:00
|
|
|
actoradapter
|
2012-11-21 16:31:18 +00:00
|
|
|
)
|
|
|
|
|
2012-11-22 12:30:02 +00:00
|
|
|
|
2013-02-03 12:30:40 +00:00
|
|
|
opencs_units_noqt (model/world
|
2015-08-21 21:01:27 +00:00
|
|
|
universalid record commands columnbase columnimp scriptcontext cell refidcollection
|
2014-10-11 18:54:21 +00:00
|
|
|
refidadapter refiddata refidadapterimp ref collectionbase refcollection columns infocollection tablemimedata cellcoordinates cellselection resources resourcesmanager scope
|
2015-04-19 03:31:16 +00:00
|
|
|
pathgrid landtexture land nestedtablewrapper nestedcollection nestedcoladapterimp nestedinfocollection
|
2016-03-08 09:48:44 +00:00
|
|
|
idcompletionmanager metadata defaultgmsts infoselectwrapper commandmacro
|
2013-02-03 12:30:40 +00:00
|
|
|
)
|
2012-11-22 12:30:02 +00:00
|
|
|
|
2013-02-03 12:30:40 +00:00
|
|
|
opencs_hdrs_noqt (model/world
|
2014-10-11 18:54:21 +00:00
|
|
|
columnimp idcollection collection info subcellcollection
|
2012-11-21 16:31:18 +00:00
|
|
|
)
|
2012-11-24 10:01:53 +00:00
|
|
|
|
2012-12-08 10:59:13 +00:00
|
|
|
|
2013-02-03 12:30:40 +00:00
|
|
|
opencs_units (model/tools
|
2016-02-07 18:52:18 +00:00
|
|
|
tools reportmodel mergeoperation
|
2013-02-03 12:30:40 +00:00
|
|
|
)
|
2012-11-22 12:30:02 +00:00
|
|
|
|
2013-02-03 12:30:40 +00:00
|
|
|
opencs_units_noqt (model/tools
|
2013-09-14 13:16:31 +00:00
|
|
|
mandatoryid skillcheck classcheck factioncheck racecheck soundcheck regioncheck
|
2015-02-13 03:11:36 +00:00
|
|
|
birthsigncheck spellcheck referencecheck referenceablecheck scriptcheck bodypartcheck
|
2015-08-03 16:08:01 +00:00
|
|
|
startscriptcheck search searchoperation searchstage pathgridcheck soundgencheck magiceffectcheck
|
2018-08-29 22:21:27 +00:00
|
|
|
mergestages gmstcheck topicinfocheck journalcheck enchantmentcheck
|
2015-08-16 13:24:48 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
opencs_hdrs_noqt (model/tools
|
|
|
|
mergestate
|
2013-02-03 12:30:40 +00:00
|
|
|
)
|
2012-11-24 10:01:53 +00:00
|
|
|
|
2012-12-08 10:59:13 +00:00
|
|
|
|
2013-02-03 12:30:40 +00:00
|
|
|
opencs_units (view/doc
|
2013-10-02 02:29:45 +00:00
|
|
|
viewmanager view operations operation subview startup filedialog newgame
|
2015-05-17 21:12:02 +00:00
|
|
|
filewidget adjusterwidget loader globaldebugprofilemenu runlogsubview sizehint
|
2013-02-03 12:30:40 +00:00
|
|
|
)
|
2012-11-24 12:17:21 +00:00
|
|
|
|
2012-12-11 14:35:47 +00:00
|
|
|
|
2013-02-03 12:30:40 +00:00
|
|
|
opencs_units_noqt (view/doc
|
|
|
|
subviewfactory
|
2012-11-21 16:31:18 +00:00
|
|
|
)
|
|
|
|
|
2013-02-03 12:30:40 +00:00
|
|
|
opencs_hdrs_noqt (view/doc
|
|
|
|
subviewfactoryimp
|
2012-11-21 16:31:18 +00:00
|
|
|
)
|
|
|
|
|
2013-02-03 12:30:40 +00:00
|
|
|
|
|
|
|
opencs_units (view/world
|
2016-08-09 04:17:41 +00:00
|
|
|
table tablesubview scriptsubview util regionmapsubview tablebottombox creator genericcreator globalcreator
|
2016-05-03 11:24:33 +00:00
|
|
|
cellcreator pathgridcreator referenceablecreator startscriptcreator referencecreator scenesubview
|
2014-07-25 09:13:52 +00:00
|
|
|
infocreator scriptedit dialoguesubview previewsubview regionmap dragrecordtable nestedtable
|
2015-07-27 10:54:13 +00:00
|
|
|
dialoguespinbox recordbuttonbar tableeditidaction scripterrortable extendedcommandconfigurator
|
2017-09-04 05:06:58 +00:00
|
|
|
bodypartcreator landtexturecreator landcreator
|
2014-07-08 10:39:12 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
opencs_units_noqt (view/world
|
|
|
|
subviews enumdelegate vartypedelegate recordstatusdelegate idtypedelegate datadisplaydelegate
|
2015-06-07 13:23:54 +00:00
|
|
|
scripthighlighter idvalidator dialoguecreator idcompletiondelegate
|
2015-06-21 14:08:10 +00:00
|
|
|
colordelegate dragdroputils
|
2014-07-08 10:39:12 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
opencs_units (view/widget
|
2014-11-06 12:26:19 +00:00
|
|
|
scenetoolbar scenetool scenetoolmode pushbutton scenetooltoggle scenetoolrun modebutton
|
2018-05-06 15:02:18 +00:00
|
|
|
scenetooltoggle2 scenetooltexturebrush completerpopup coloreditor colorpickerpopup droplineedit
|
2013-02-03 12:30:40 +00:00
|
|
|
)
|
|
|
|
|
2013-11-02 01:48:30 +00:00
|
|
|
opencs_units (view/render
|
2014-03-06 09:13:39 +00:00
|
|
|
scenewidget worldspacewidget pagedworldspacewidget unpagedworldspacewidget
|
2016-02-16 15:02:29 +00:00
|
|
|
previewwidget editmode instancemode instanceselectionmode instancemovemode
|
2016-07-08 03:45:02 +00:00
|
|
|
orbitcameramode pathgridmode selectionmode pathgridselectionmode cameracontroller
|
2018-08-24 02:40:43 +00:00
|
|
|
cellwater terraintexturemode actor
|
2014-02-27 13:46:06 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
opencs_units_noqt (view/render
|
2016-03-14 04:04:11 +00:00
|
|
|
lighting lightingday lightingnight lightingbright object cell terrainstorage tagbase
|
2018-08-24 02:40:43 +00:00
|
|
|
cellarrow cellmarker cellborder pathgrid
|
2014-02-27 13:46:06 +00:00
|
|
|
)
|
2013-11-02 01:48:30 +00:00
|
|
|
|
2014-07-31 11:15:35 +00:00
|
|
|
opencs_hdrs_noqt (view/render
|
2016-01-06 13:34:39 +00:00
|
|
|
mask
|
2014-07-31 11:15:35 +00:00
|
|
|
)
|
|
|
|
|
2013-02-03 12:30:40 +00:00
|
|
|
|
|
|
|
opencs_units (view/tools
|
2015-08-06 10:52:10 +00:00
|
|
|
reportsubview reporttable searchsubview searchbox merge
|
2013-02-03 12:30:40 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
opencs_units_noqt (view/tools
|
|
|
|
subviews
|
|
|
|
)
|
|
|
|
|
2015-12-06 10:18:31 +00:00
|
|
|
opencs_units (view/prefs
|
2017-05-11 07:46:51 +00:00
|
|
|
dialogue pagebase page keybindingpage contextmenulist
|
2015-12-06 10:18:31 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
opencs_units (model/prefs
|
2016-07-08 03:45:02 +00:00
|
|
|
state setting intsetting doublesetting boolsetting enumsetting coloursetting shortcut
|
2016-07-27 17:53:33 +00:00
|
|
|
shortcuteventhandler shortcutmanager shortcutsetting modifiersetting
|
2015-12-06 10:18:31 +00:00
|
|
|
)
|
|
|
|
|
2015-12-06 11:06:28 +00:00
|
|
|
opencs_units_noqt (model/prefs
|
|
|
|
category
|
|
|
|
)
|
|
|
|
|
2013-08-09 12:49:05 +00:00
|
|
|
opencs_units_noqt (model/filter
|
2013-08-24 12:43:38 +00:00
|
|
|
node unarynode narynode leafnode booleannode parser andnode ornode notnode textnode valuenode
|
2013-08-09 12:49:05 +00:00
|
|
|
)
|
|
|
|
|
2013-08-08 13:55:23 +00:00
|
|
|
opencs_units (view/filter
|
2014-08-10 16:46:32 +00:00
|
|
|
filterbox recordfilterbox editwidget
|
2013-08-08 13:55:23 +00:00
|
|
|
)
|
|
|
|
|
2012-11-21 16:31:18 +00:00
|
|
|
set (OPENCS_US
|
|
|
|
)
|
|
|
|
|
2013-10-23 02:52:35 +00:00
|
|
|
set (OPENCS_RES ${CMAKE_SOURCE_DIR}/files/opencs/resources.qrc
|
|
|
|
${CMAKE_SOURCE_DIR}/files/launcher/launcher.qrc
|
2013-03-07 02:00:59 +00:00
|
|
|
)
|
|
|
|
|
2013-10-23 02:52:35 +00:00
|
|
|
set (OPENCS_UI
|
|
|
|
${CMAKE_SOURCE_DIR}/files/ui/contentselector.ui
|
|
|
|
${CMAKE_SOURCE_DIR}/files/ui/filedialog.ui
|
2012-11-21 16:31:18 +00:00
|
|
|
)
|
|
|
|
|
2015-02-03 12:18:03 +00:00
|
|
|
source_group (openmw-cs FILES ${OPENCS_SRC} ${OPENCS_HDR})
|
2012-11-21 16:31:18 +00:00
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
set(QT_USE_QTMAIN TRUE)
|
|
|
|
endif(WIN32)
|
|
|
|
|
2015-06-12 13:10:12 +00:00
|
|
|
if (DESIRED_QT_VERSION MATCHES 4)
|
|
|
|
include(${QT_USE_FILE})
|
|
|
|
qt4_wrap_ui(OPENCS_UI_HDR ${OPENCS_UI})
|
|
|
|
qt4_wrap_cpp(OPENCS_MOC_SRC ${OPENCS_HDR_QT})
|
|
|
|
qt4_add_resources(OPENCS_RES_SRC ${OPENCS_RES})
|
|
|
|
else()
|
|
|
|
qt5_wrap_ui(OPENCS_UI_HDR ${OPENCS_UI})
|
|
|
|
qt5_wrap_cpp(OPENCS_MOC_SRC ${OPENCS_HDR_QT})
|
|
|
|
qt5_add_resources(OPENCS_RES_SRC ${OPENCS_RES})
|
|
|
|
endif()
|
2012-11-21 16:31:18 +00:00
|
|
|
|
2015-03-05 23:56:37 +00:00
|
|
|
# for compiled .ui files
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
2012-11-21 16:31:18 +00:00
|
|
|
|
2013-11-10 16:11:53 +00:00
|
|
|
if(APPLE)
|
2016-10-28 13:39:27 +00:00
|
|
|
set (OPENCS_MAC_ICON "${CMAKE_SOURCE_DIR}/files/mac/openmw-cs.icns")
|
|
|
|
set (OPENCS_CFG "${OpenMW_BINARY_DIR}/openmw-cs.cfg")
|
|
|
|
set (OPENCS_DEFAULT_FILTERS_FILE "${OpenMW_BINARY_DIR}/resources/defaultfilters")
|
|
|
|
set (OPENCS_OPENMW_CFG "${OpenMW_BINARY_DIR}/openmw.cfg")
|
2013-11-10 16:11:53 +00:00
|
|
|
else()
|
|
|
|
set (OPENCS_MAC_ICON "")
|
2016-10-28 13:39:27 +00:00
|
|
|
set (OPENCS_CFG "")
|
|
|
|
set (OPENCS_DEFAULT_FILTERS_FILE "")
|
|
|
|
set (OPENCS_OPENMW_CFG "")
|
2013-11-10 16:11:53 +00:00
|
|
|
endif(APPLE)
|
|
|
|
|
2017-09-08 21:17:42 +00:00
|
|
|
openmw_add_executable(openmw-cs
|
2013-11-10 15:09:05 +00:00
|
|
|
MACOSX_BUNDLE
|
2012-11-21 16:31:18 +00:00
|
|
|
${OPENCS_SRC}
|
|
|
|
${OPENCS_UI_HDR}
|
|
|
|
${OPENCS_MOC_SRC}
|
|
|
|
${OPENCS_RES_SRC}
|
2013-11-10 16:11:53 +00:00
|
|
|
${OPENCS_MAC_ICON}
|
2016-10-28 13:39:27 +00:00
|
|
|
${OPENCS_CFG}
|
|
|
|
${OPENCS_DEFAULT_FILTERS_FILE}
|
|
|
|
${OPENCS_OPENMW_CFG}
|
2012-11-21 16:31:18 +00:00
|
|
|
)
|
|
|
|
|
2013-11-10 15:09:05 +00:00
|
|
|
if(APPLE)
|
2016-10-28 13:39:27 +00:00
|
|
|
set(OPENCS_BUNDLE_NAME "OpenMW-CS")
|
|
|
|
set(OPENCS_BUNDLE_RESOURCES_DIR "${OpenMW_BINARY_DIR}/${OPENCS_BUNDLE_NAME}.app/Contents/Resources")
|
|
|
|
|
|
|
|
set(OPENMW_MYGUI_FILES_ROOT ${OPENCS_BUNDLE_RESOURCES_DIR})
|
|
|
|
set(OPENMW_SHADERS_ROOT ${OPENCS_BUNDLE_RESOURCES_DIR})
|
|
|
|
|
|
|
|
add_subdirectory(../../files/ ${CMAKE_CURRENT_BINARY_DIR}/files)
|
|
|
|
|
2015-02-03 12:57:40 +00:00
|
|
|
set_target_properties(openmw-cs PROPERTIES
|
2013-11-10 16:11:53 +00:00
|
|
|
RUNTIME_OUTPUT_DIRECTORY "${OpenMW_BINARY_DIR}"
|
2016-10-28 13:39:27 +00:00
|
|
|
OUTPUT_NAME ${OPENCS_BUNDLE_NAME}
|
2015-02-03 12:18:03 +00:00
|
|
|
MACOSX_BUNDLE_ICON_FILE "openmw-cs.icns"
|
2017-09-02 23:07:12 +00:00
|
|
|
MACOSX_BUNDLE_BUNDLE_NAME "OpenMW-CS"
|
2013-11-10 16:11:53 +00:00
|
|
|
MACOSX_BUNDLE_GUI_IDENTIFIER "org.openmw.opencs"
|
|
|
|
MACOSX_BUNDLE_SHORT_VERSION_STRING ${OPENMW_VERSION}
|
|
|
|
MACOSX_BUNDLE_BUNDLE_VERSION ${OPENMW_VERSION}
|
2015-08-11 22:38:02 +00:00
|
|
|
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_SOURCE_DIR}/files/mac/openmw-cs-Info.plist.in"
|
2013-11-10 16:11:53 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set_source_files_properties(${OPENCS_MAC_ICON} PROPERTIES
|
|
|
|
MACOSX_PACKAGE_LOCATION Resources)
|
2016-10-28 13:39:27 +00:00
|
|
|
set_source_files_properties(${OPENCS_CFG} PROPERTIES
|
|
|
|
MACOSX_PACKAGE_LOCATION Resources)
|
|
|
|
set_source_files_properties(${OPENCS_DEFAULT_FILTERS_FILE} PROPERTIES
|
|
|
|
MACOSX_PACKAGE_LOCATION Resources/resources)
|
|
|
|
set_source_files_properties(${OPENCS_OPENMW_CFG} PROPERTIES
|
|
|
|
MACOSX_PACKAGE_LOCATION Resources)
|
|
|
|
|
|
|
|
add_custom_command(TARGET openmw-cs
|
|
|
|
POST_BUILD
|
|
|
|
COMMAND cp "${OpenMW_BINARY_DIR}/resources/version" "${OPENCS_BUNDLE_RESOURCES_DIR}/resources")
|
2013-11-10 15:09:05 +00:00
|
|
|
endif(APPLE)
|
|
|
|
|
2015-02-03 12:18:03 +00:00
|
|
|
target_link_libraries(openmw-cs
|
2015-11-29 18:56:43 +00:00
|
|
|
${OSG_LIBRARIES}
|
|
|
|
${OPENTHREADS_LIBRARIES}
|
2016-02-07 18:52:18 +00:00
|
|
|
${OSGTEXT_LIBRARIES}
|
2015-11-29 18:56:43 +00:00
|
|
|
${OSGUTIL_LIBRARIES}
|
|
|
|
${OSGVIEWER_LIBRARIES}
|
|
|
|
${OSGGA_LIBRARIES}
|
|
|
|
${OSGFX_LIBRARIES}
|
2016-02-15 14:16:48 +00:00
|
|
|
${EXTERN_OSGQT_LIBRARY}
|
2015-06-11 21:49:27 +00:00
|
|
|
${Boost_SYSTEM_LIBRARY}
|
|
|
|
${Boost_FILESYSTEM_LIBRARY}
|
|
|
|
${Boost_PROGRAM_OPTIONS_LIBRARY}
|
2012-11-21 16:31:18 +00:00
|
|
|
components
|
2013-02-17 13:46:50 +00:00
|
|
|
)
|
2013-11-07 22:05:45 +00:00
|
|
|
|
2015-06-12 13:10:12 +00:00
|
|
|
if (DESIRED_QT_VERSION MATCHES 4)
|
|
|
|
target_link_libraries(openmw-cs
|
|
|
|
${QT_QTGUI_LIBRARY}
|
|
|
|
${QT_QTCORE_LIBRARY}
|
2015-06-13 19:11:24 +00:00
|
|
|
${QT_QTNETWORK_LIBRARY}
|
|
|
|
${QT_QTOPENGL_LIBRARY})
|
2015-06-15 12:16:14 +00:00
|
|
|
|
|
|
|
if (WIN32)
|
|
|
|
target_link_libraries(openmw-cs ${QT_QTMAIN_LIBRARY})
|
|
|
|
endif()
|
2015-06-12 13:10:12 +00:00
|
|
|
else()
|
2018-04-17 21:03:56 +00:00
|
|
|
target_link_libraries(openmw-cs Qt5::Widgets Qt5::Core Qt5::Network Qt5::OpenGL)
|
2015-06-12 13:10:12 +00:00
|
|
|
endif()
|
|
|
|
|
2015-06-11 21:49:27 +00:00
|
|
|
if (WIN32)
|
|
|
|
target_link_libraries(openmw-cs ${Boost_LOCALE_LIBRARY})
|
2016-11-14 04:49:01 +00:00
|
|
|
INSTALL(TARGETS openmw-cs RUNTIME DESTINATION ".")
|
2017-10-24 21:23:55 +00:00
|
|
|
INSTALL(FILES "${OpenMW_BINARY_DIR}/Debug/openmw-cs.cfg" DESTINATION "." CONFIGURATIONS Debug)
|
|
|
|
INSTALL(FILES "${OpenMW_BINARY_DIR}/Release/openmw-cs.cfg" DESTINATION "." CONFIGURATIONS Release;RelWithDebInfo;MinSizeRel)
|
2015-06-11 21:49:27 +00:00
|
|
|
endif()
|
|
|
|
|
2016-11-13 20:27:59 +00:00
|
|
|
if (MSVC)
|
|
|
|
# Debug version needs increased number of sections beyond 2^16
|
|
|
|
if (CMAKE_CL_64)
|
|
|
|
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj")
|
|
|
|
endif (CMAKE_CL_64)
|
|
|
|
endif (MSVC)
|
|
|
|
|
2015-06-11 21:49:27 +00:00
|
|
|
|
2013-11-10 18:04:13 +00:00
|
|
|
if(APPLE)
|
2016-10-28 13:39:27 +00:00
|
|
|
INSTALL(TARGETS openmw-cs BUNDLE DESTINATION "." COMPONENT BUNDLE)
|
2013-11-10 18:24:31 +00:00
|
|
|
endif()
|