2014-09-05 20:30:50 +10:00
|
|
|
set (OPENCS_SRC main.cpp
|
2014-09-05 22:36:33 +10:00
|
|
|
${CMAKE_SOURCE_DIR}/files/windows/opencs.rc
|
2014-09-05 20:30:50 +10:00
|
|
|
)
|
2012-11-21 17:31:18 +01:00
|
|
|
|
2013-02-03 13:30:40 +01:00
|
|
|
opencs_units (. editor)
|
2012-11-22 13:30:02 +01:00
|
|
|
|
2013-02-03 13:30:40 +01:00
|
|
|
opencs_units (model/doc
|
2015-03-14 12:00:24 +01:00
|
|
|
document operation saving documentmanager loader runner operationholder
|
2013-02-03 13:30:40 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
opencs_units_noqt (model/doc
|
2014-12-07 18:57:47 +01:00
|
|
|
stage savingstate savingstages blacklist messages
|
2013-02-03 13:30:40 +01:00
|
|
|
)
|
2012-12-08 11:59:13 +01:00
|
|
|
|
2013-02-03 13:30:40 +01:00
|
|
|
opencs_hdrs_noqt (model/doc
|
|
|
|
state
|
|
|
|
)
|
2012-11-24 13:17:21 +01:00
|
|
|
|
2012-12-11 15:35:47 +01:00
|
|
|
|
2013-02-03 13:30:40 +01:00
|
|
|
opencs_units (model/world
|
2015-06-17 22:47:39 +03:00
|
|
|
idtable idtableproxymodel regionmap data commanddispatcher idtablebase resourcetable nestedtableproxymodel idtree infotableproxymodel
|
2012-11-21 17:31:18 +01:00
|
|
|
)
|
|
|
|
|
2012-11-22 13:30:02 +01:00
|
|
|
|
2013-02-03 13:30:40 +01:00
|
|
|
opencs_units_noqt (model/world
|
2015-08-22 00:01:27 +03:00
|
|
|
universalid record commands columnbase columnimp scriptcontext cell refidcollection
|
2014-10-12 05:54:21 +11:00
|
|
|
refidadapter refiddata refidadapterimp ref collectionbase refcollection columns infocollection tablemimedata cellcoordinates cellselection resources resourcesmanager scope
|
2015-04-19 13:31:16 +10:00
|
|
|
pathgrid landtexture land nestedtablewrapper nestedcollection nestedcoladapterimp nestedinfocollection
|
2015-06-26 13:01:25 +02:00
|
|
|
idcompletionmanager metadata
|
2013-02-03 13:30:40 +01:00
|
|
|
)
|
2012-11-22 13:30:02 +01:00
|
|
|
|
2013-02-03 13:30:40 +01:00
|
|
|
opencs_hdrs_noqt (model/world
|
2014-10-12 05:54:21 +11:00
|
|
|
columnimp idcollection collection info subcellcollection
|
2012-11-21 17:31:18 +01:00
|
|
|
)
|
2012-11-24 11:01:53 +01:00
|
|
|
|
2012-12-08 11:59:13 +01:00
|
|
|
|
2013-02-03 13:30:40 +01:00
|
|
|
opencs_units (model/tools
|
2015-08-16 15:24:48 +02:00
|
|
|
tools reportmodel mergeoperation
|
2013-02-03 13:30:40 +01:00
|
|
|
)
|
2012-11-22 13:30:02 +01:00
|
|
|
|
2013-02-03 13:30:40 +01:00
|
|
|
opencs_units_noqt (model/tools
|
2013-09-14 15:16:31 +02:00
|
|
|
mandatoryid skillcheck classcheck factioncheck racecheck soundcheck regioncheck
|
2015-02-13 04:11:36 +01:00
|
|
|
birthsigncheck spellcheck referencecheck referenceablecheck scriptcheck bodypartcheck
|
2015-08-03 19:08:01 +03:00
|
|
|
startscriptcheck search searchoperation searchstage pathgridcheck soundgencheck magiceffectcheck
|
2015-08-16 15:24:48 +02:00
|
|
|
mergestages
|
|
|
|
)
|
|
|
|
|
|
|
|
opencs_hdrs_noqt (model/tools
|
|
|
|
mergestate
|
2013-02-03 13:30:40 +01:00
|
|
|
)
|
2012-11-24 11:01:53 +01:00
|
|
|
|
2012-12-08 11:59:13 +01:00
|
|
|
|
2013-02-03 13:30:40 +01:00
|
|
|
opencs_units (view/doc
|
2013-10-01 21:29:45 -05:00
|
|
|
viewmanager view operations operation subview startup filedialog newgame
|
2015-05-18 07:12:02 +10:00
|
|
|
filewidget adjusterwidget loader globaldebugprofilemenu runlogsubview sizehint
|
2013-02-03 13:30:40 +01:00
|
|
|
)
|
2012-11-24 13:17:21 +01:00
|
|
|
|
2012-12-11 15:35:47 +01:00
|
|
|
|
2013-02-03 13:30:40 +01:00
|
|
|
opencs_units_noqt (view/doc
|
|
|
|
subviewfactory
|
2012-11-21 17:31:18 +01:00
|
|
|
)
|
|
|
|
|
2013-02-03 13:30:40 +01:00
|
|
|
opencs_hdrs_noqt (view/doc
|
|
|
|
subviewfactoryimp
|
2012-11-21 17:31:18 +01:00
|
|
|
)
|
|
|
|
|
2013-02-03 13:30:40 +01:00
|
|
|
|
|
|
|
opencs_units (view/world
|
2013-07-26 21:09:23 +02:00
|
|
|
table tablesubview scriptsubview util regionmapsubview tablebottombox creator genericcreator
|
2015-09-29 22:43:20 +10:00
|
|
|
cellcreator referenceablecreator startscriptcreator referencecreator scenesubview
|
2014-07-25 11:13:52 +02:00
|
|
|
infocreator scriptedit dialoguesubview previewsubview regionmap dragrecordtable nestedtable
|
2015-07-27 13:54:13 +03:00
|
|
|
dialoguespinbox recordbuttonbar tableeditidaction scripterrortable extendedcommandconfigurator
|
2014-07-08 12:39:12 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
opencs_units_noqt (view/world
|
|
|
|
subviews enumdelegate vartypedelegate recordstatusdelegate idtypedelegate datadisplaydelegate
|
2015-06-07 15:23:54 +02:00
|
|
|
scripthighlighter idvalidator dialoguecreator idcompletiondelegate
|
2015-06-21 17:08:10 +03:00
|
|
|
colordelegate dragdroputils
|
2014-07-08 12:39:12 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
opencs_units (view/widget
|
2014-11-06 13:26:19 +01:00
|
|
|
scenetoolbar scenetool scenetoolmode pushbutton scenetooltoggle scenetoolrun modebutton
|
2015-06-20 17:33:36 +03:00
|
|
|
scenetooltoggle2 completerpopup coloreditor colorpickerpopup droplineedit
|
2013-02-03 13:30:40 +01:00
|
|
|
)
|
|
|
|
|
2013-11-02 02:48:30 +01:00
|
|
|
opencs_units (view/render
|
2014-03-06 10:13:39 +01:00
|
|
|
scenewidget worldspacewidget pagedworldspacewidget unpagedworldspacewidget
|
2015-09-27 16:18:22 +02:00
|
|
|
previewwidget editmode instancemode
|
2014-02-27 14:46:06 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
opencs_units_noqt (view/render
|
2015-06-03 18:11:34 +02:00
|
|
|
lighting lightingday lightingnight
|
2015-10-12 14:12:01 +02:00
|
|
|
lightingbright object cell terrainstorage tagbase cellarrow
|
2014-02-27 14:46:06 +01:00
|
|
|
)
|
2013-11-02 02:48:30 +01:00
|
|
|
|
2014-07-31 13:15:35 +02:00
|
|
|
opencs_hdrs_noqt (view/render
|
|
|
|
elements
|
|
|
|
)
|
|
|
|
|
2013-02-03 13:30:40 +01:00
|
|
|
|
|
|
|
opencs_units (view/tools
|
2015-08-06 12:52:10 +02:00
|
|
|
reportsubview reporttable searchsubview searchbox merge
|
2013-02-03 13:30:40 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
opencs_units_noqt (view/tools
|
|
|
|
subviews
|
|
|
|
)
|
|
|
|
|
2013-05-10 10:00:58 -05:00
|
|
|
opencs_units (view/settings
|
2014-04-22 22:17:52 -05:00
|
|
|
settingwindow
|
|
|
|
dialog
|
|
|
|
page
|
|
|
|
view
|
|
|
|
booleanview
|
|
|
|
textview
|
|
|
|
listview
|
2014-04-26 09:40:58 -05:00
|
|
|
rangeview
|
2014-04-22 22:17:52 -05:00
|
|
|
resizeablestackedwidget
|
2014-05-03 18:58:43 -05:00
|
|
|
spinbox
|
2013-05-11 05:55:46 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
opencs_units_noqt (view/settings
|
2014-04-22 22:17:52 -05:00
|
|
|
frame
|
2013-05-07 20:33:42 -05:00
|
|
|
)
|
|
|
|
|
2013-05-10 10:00:58 -05:00
|
|
|
opencs_units (model/settings
|
2013-05-12 15:15:57 -05:00
|
|
|
usersettings
|
2014-04-22 22:17:52 -05:00
|
|
|
setting
|
|
|
|
connector
|
2013-05-10 10:00:58 -05:00
|
|
|
)
|
|
|
|
|
2014-04-22 22:17:52 -05:00
|
|
|
opencs_hdrs_noqt (model/settings
|
2013-05-07 20:33:42 -05:00
|
|
|
support
|
|
|
|
)
|
2013-02-03 13:30:40 +01:00
|
|
|
|
2013-08-09 14:49:05 +02:00
|
|
|
opencs_units_noqt (model/filter
|
2013-08-24 14:43:38 +02:00
|
|
|
node unarynode narynode leafnode booleannode parser andnode ornode notnode textnode valuenode
|
2013-08-09 14:49:05 +02:00
|
|
|
)
|
|
|
|
|
2013-08-08 15:55:23 +02:00
|
|
|
opencs_units (view/filter
|
2014-08-10 18:46:32 +02:00
|
|
|
filterbox recordfilterbox editwidget
|
2013-08-08 15:55:23 +02:00
|
|
|
)
|
|
|
|
|
2012-11-21 17:31:18 +01:00
|
|
|
set (OPENCS_US
|
|
|
|
)
|
|
|
|
|
2013-10-22 21:52:35 -05:00
|
|
|
set (OPENCS_RES ${CMAKE_SOURCE_DIR}/files/opencs/resources.qrc
|
|
|
|
${CMAKE_SOURCE_DIR}/files/launcher/launcher.qrc
|
2013-03-07 03:00:59 +01:00
|
|
|
)
|
|
|
|
|
2013-10-22 21:52:35 -05:00
|
|
|
set (OPENCS_UI
|
|
|
|
${CMAKE_SOURCE_DIR}/files/ui/contentselector.ui
|
|
|
|
${CMAKE_SOURCE_DIR}/files/ui/filedialog.ui
|
2012-11-21 17:31:18 +01:00
|
|
|
)
|
|
|
|
|
2015-02-03 13:18:03 +01:00
|
|
|
source_group (openmw-cs FILES ${OPENCS_SRC} ${OPENCS_HDR})
|
2012-11-21 17:31:18 +01:00
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
set(QT_USE_QTMAIN TRUE)
|
|
|
|
endif(WIN32)
|
|
|
|
|
2015-06-12 15:10:12 +02: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 17:31:18 +01:00
|
|
|
|
2015-03-06 00:56:37 +01:00
|
|
|
# for compiled .ui files
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
2012-11-21 17:31:18 +01:00
|
|
|
|
2013-11-10 20:11:53 +04:00
|
|
|
if(APPLE)
|
2015-02-03 13:18:03 +01:00
|
|
|
set (OPENCS_MAC_ICON ${CMAKE_SOURCE_DIR}/files/mac/openmw-cs.icns)
|
2013-11-10 20:11:53 +04:00
|
|
|
else()
|
|
|
|
set (OPENCS_MAC_ICON "")
|
|
|
|
endif(APPLE)
|
|
|
|
|
2015-02-03 13:18:03 +01:00
|
|
|
add_executable(openmw-cs
|
2013-11-10 19:09:05 +04:00
|
|
|
MACOSX_BUNDLE
|
2012-11-21 17:31:18 +01:00
|
|
|
${OPENCS_SRC}
|
|
|
|
${OPENCS_UI_HDR}
|
|
|
|
${OPENCS_MOC_SRC}
|
|
|
|
${OPENCS_RES_SRC}
|
2013-11-10 20:11:53 +04:00
|
|
|
${OPENCS_MAC_ICON}
|
2012-11-21 17:31:18 +01:00
|
|
|
)
|
|
|
|
|
2013-11-10 19:09:05 +04:00
|
|
|
if(APPLE)
|
2015-02-03 13:57:40 +01:00
|
|
|
set_target_properties(openmw-cs PROPERTIES
|
2013-11-10 20:11:53 +04:00
|
|
|
RUNTIME_OUTPUT_DIRECTORY "${OpenMW_BINARY_DIR}"
|
2015-02-03 13:18:03 +01:00
|
|
|
OUTPUT_NAME "OpenMW-CS"
|
|
|
|
MACOSX_BUNDLE_ICON_FILE "openmw-cs.icns"
|
2013-11-10 20:11:53 +04:00
|
|
|
MACOSX_BUNDLE_BUNDLE_NAME "OpenCS"
|
|
|
|
MACOSX_BUNDLE_GUI_IDENTIFIER "org.openmw.opencs"
|
|
|
|
MACOSX_BUNDLE_SHORT_VERSION_STRING ${OPENMW_VERSION}
|
|
|
|
MACOSX_BUNDLE_BUNDLE_VERSION ${OPENMW_VERSION}
|
2015-08-12 00:38:02 +02:00
|
|
|
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_SOURCE_DIR}/files/mac/openmw-cs-Info.plist.in"
|
2013-11-10 20:11:53 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
set_source_files_properties(${OPENCS_MAC_ICON} PROPERTIES
|
|
|
|
MACOSX_PACKAGE_LOCATION Resources)
|
2013-11-10 19:09:05 +04:00
|
|
|
endif(APPLE)
|
|
|
|
|
2015-02-03 13:18:03 +01:00
|
|
|
target_link_libraries(openmw-cs
|
2015-03-19 23:27:14 +01:00
|
|
|
${OPENSCENEGRAPH_LIBRARIES}
|
2015-06-11 23:49:27 +02:00
|
|
|
${Boost_SYSTEM_LIBRARY}
|
|
|
|
${Boost_FILESYSTEM_LIBRARY}
|
|
|
|
${Boost_PROGRAM_OPTIONS_LIBRARY}
|
2012-11-21 17:31:18 +01:00
|
|
|
components
|
2013-02-17 07:46:50 -06:00
|
|
|
)
|
2013-11-07 23:05:45 +01:00
|
|
|
|
2015-06-12 15:10:12 +02:00
|
|
|
if (DESIRED_QT_VERSION MATCHES 4)
|
|
|
|
target_link_libraries(openmw-cs
|
|
|
|
${QT_QTGUI_LIBRARY}
|
|
|
|
${QT_QTCORE_LIBRARY}
|
2015-06-13 21:11:24 +02:00
|
|
|
${QT_QTNETWORK_LIBRARY}
|
|
|
|
${QT_QTOPENGL_LIBRARY})
|
2015-06-15 14:16:14 +02:00
|
|
|
|
|
|
|
if (WIN32)
|
|
|
|
target_link_libraries(openmw-cs ${QT_QTMAIN_LIBRARY})
|
|
|
|
endif()
|
2015-06-12 15:10:12 +02:00
|
|
|
else()
|
2015-06-13 21:11:24 +02:00
|
|
|
qt5_use_modules(openmw-cs Widgets Core Network OpenGL)
|
2015-06-15 14:16:14 +02:00
|
|
|
if (WIN32)
|
|
|
|
target_link_libraries(Qt5::WinMain)
|
|
|
|
endif()
|
2015-06-12 15:10:12 +02:00
|
|
|
endif()
|
|
|
|
|
2015-06-11 23:49:27 +02:00
|
|
|
if (WIN32)
|
|
|
|
target_link_libraries(openmw-cs ${Boost_LOCALE_LIBRARY})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2013-11-10 22:04:13 +04:00
|
|
|
if(APPLE)
|
2015-02-06 08:59:00 +02:00
|
|
|
INSTALL(TARGETS openmw-cs BUNDLE DESTINATION OpenMW COMPONENT BUNDLE)
|
2013-11-10 22:24:31 +04:00
|
|
|
endif()
|