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-05-08 01:33:42 +00:00
|
|
|
set (CMAKE_BUILD_TYPE DEBUG)
|
2012-11-24 10:01:53 +00:00
|
|
|
|
2013-02-03 12:30:40 +00:00
|
|
|
opencs_units (model/doc
|
2014-09-02 08:21:17 +00:00
|
|
|
document operation saving documentmanager loader runner
|
2013-02-03 12:30:40 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
opencs_units_noqt (model/doc
|
2014-07-21 10:15:21 +00:00
|
|
|
stage savingstate savingstages blacklist
|
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
|
2014-07-05 13:50:47 +00:00
|
|
|
idtable idtableproxymodel regionmap data commanddispatcher idtablebase resourcetable
|
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
|
2013-09-19 10:11:27 +00:00
|
|
|
universalid record commands columnbase 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
|
|
|
|
pathgrid landtexture land
|
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
|
2013-09-14 12:56:23 +00:00
|
|
|
tools reportmodel
|
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
|
2014-08-26 15:55:31 +00:00
|
|
|
birthsigncheck spellcheck referenceablecheck scriptcheck bodypartcheck
|
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
|
2014-09-05 11:49:34 +00:00
|
|
|
filewidget adjusterwidget loader globaldebugprofilemenu runlogsubview
|
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
|
2013-07-26 19:09:23 +00:00
|
|
|
table tablesubview scriptsubview util regionmapsubview tablebottombox creator genericcreator
|
2014-07-08 10:39:12 +00:00
|
|
|
cellcreator referenceablecreator referencecreator scenesubview
|
|
|
|
infocreator scriptedit dialoguesubview previewsubview regionmap dragrecordtable
|
|
|
|
)
|
|
|
|
|
|
|
|
opencs_units_noqt (view/world
|
|
|
|
subviews enumdelegate vartypedelegate recordstatusdelegate idtypedelegate datadisplaydelegate
|
2014-10-17 19:16:48 +00:00
|
|
|
scripthighlighter idvalidator dialoguecreator physicssystem
|
2014-07-08 10:39:12 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
opencs_units (view/widget
|
2014-09-06 14:11:06 +00:00
|
|
|
scenetoolbar scenetool scenetoolmode pushbutton scenetooltoggle scenetoolrun
|
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
|
2014-10-09 15:19:35 +00:00
|
|
|
previewwidget
|
2014-02-27 13:46:06 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
opencs_units_noqt (view/render
|
2014-03-26 16:59:42 +00:00
|
|
|
navigation navigation1st navigationfree navigationorbit lighting lightingday lightingnight
|
2014-10-15 20:29:46 +00:00
|
|
|
lightingbright object cell terrainstorage textoverlay overlaymask overlaysystem
|
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
|
|
|
|
elements
|
|
|
|
)
|
|
|
|
|
2013-02-03 12:30:40 +00:00
|
|
|
|
|
|
|
opencs_units (view/tools
|
|
|
|
reportsubview
|
|
|
|
)
|
|
|
|
|
|
|
|
opencs_units_noqt (view/tools
|
|
|
|
subviews
|
|
|
|
)
|
|
|
|
|
2013-05-10 15:00:58 +00:00
|
|
|
opencs_units (view/settings
|
2014-04-23 03:17:52 +00:00
|
|
|
settingwindow
|
|
|
|
dialog
|
|
|
|
page
|
|
|
|
view
|
|
|
|
booleanview
|
|
|
|
textview
|
|
|
|
listview
|
2014-04-26 14:40:58 +00:00
|
|
|
rangeview
|
2014-04-23 03:17:52 +00:00
|
|
|
resizeablestackedwidget
|
2014-05-03 23:58:43 +00:00
|
|
|
spinbox
|
2013-05-11 10:55:46 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
opencs_units_noqt (view/settings
|
2014-04-23 03:17:52 +00:00
|
|
|
frame
|
2013-05-08 01:33:42 +00:00
|
|
|
)
|
|
|
|
|
2013-05-10 15:00:58 +00:00
|
|
|
opencs_units (model/settings
|
2013-05-12 20:15:57 +00:00
|
|
|
usersettings
|
2014-04-23 03:17:52 +00:00
|
|
|
setting
|
|
|
|
connector
|
2013-05-10 15:00:58 +00:00
|
|
|
)
|
|
|
|
|
2014-04-23 03:17:52 +00:00
|
|
|
opencs_hdrs_noqt (model/settings
|
2013-05-08 01:33:42 +00:00
|
|
|
support
|
|
|
|
)
|
2013-02-03 12:30:40 +00:00
|
|
|
|
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
|
|
|
)
|
|
|
|
|
|
|
|
source_group (opencs FILES ${OPENCS_SRC} ${OPENCS_HDR})
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
set(QT_USE_QTMAIN TRUE)
|
|
|
|
endif(WIN32)
|
|
|
|
|
2014-05-22 11:42:47 +00:00
|
|
|
set(BOOST_COMPONENTS system filesystem program_options thread wave)
|
|
|
|
if(WIN32)
|
|
|
|
set(BOOST_COMPONENTS ${BOOST_COMPONENTS} locale)
|
|
|
|
endif(WIN32)
|
|
|
|
|
2014-03-16 11:44:01 +00:00
|
|
|
find_package(Boost REQUIRED COMPONENTS ${BOOST_COMPONENTS})
|
|
|
|
|
2013-12-29 21:25:49 +00:00
|
|
|
find_package(Qt4 COMPONENTS QtCore QtGui QtNetwork REQUIRED)
|
2012-11-21 16:31:18 +00:00
|
|
|
include(${QT_USE_FILE})
|
|
|
|
|
|
|
|
qt4_wrap_ui(OPENCS_UI_HDR ${OPENCS_UI})
|
2013-02-03 12:30:40 +00:00
|
|
|
qt4_wrap_cpp(OPENCS_MOC_SRC ${OPENCS_HDR_QT})
|
2012-11-21 16:31:18 +00:00
|
|
|
qt4_add_resources(OPENCS_RES_SRC ${OPENCS_RES})
|
|
|
|
|
2014-10-17 19:16:48 +00:00
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${BULLET_INCLUDE_DIRS})
|
2012-11-21 16:31:18 +00:00
|
|
|
|
2013-11-10 16:11:53 +00:00
|
|
|
if(APPLE)
|
|
|
|
set (OPENCS_MAC_ICON ${CMAKE_SOURCE_DIR}/files/mac/opencs.icns)
|
|
|
|
else()
|
|
|
|
set (OPENCS_MAC_ICON "")
|
|
|
|
endif(APPLE)
|
|
|
|
|
2012-11-21 16:31:18 +00:00
|
|
|
add_executable(opencs
|
2013-11-10 15:09:05 +00:00
|
|
|
MACOSX_BUNDLE
|
2014-10-17 19:16:48 +00:00
|
|
|
${OENGINE_BULLET}
|
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}
|
2012-11-21 16:31:18 +00:00
|
|
|
)
|
|
|
|
|
2013-11-10 15:09:05 +00:00
|
|
|
if(APPLE)
|
2013-11-10 16:11:53 +00:00
|
|
|
set_target_properties(opencs PROPERTIES
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY "${OpenMW_BINARY_DIR}"
|
|
|
|
OUTPUT_NAME "OpenCS"
|
|
|
|
MACOSX_BUNDLE_ICON_FILE "opencs.icns"
|
|
|
|
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}
|
|
|
|
)
|
|
|
|
|
|
|
|
set_source_files_properties(${OPENCS_MAC_ICON} PROPERTIES
|
|
|
|
MACOSX_PACKAGE_LOCATION Resources)
|
2013-11-10 15:09:05 +00:00
|
|
|
endif(APPLE)
|
|
|
|
|
2012-11-21 16:31:18 +00:00
|
|
|
target_link_libraries(opencs
|
2014-03-16 11:44:01 +00:00
|
|
|
${OGRE_LIBRARIES}
|
2014-10-03 19:48:56 +00:00
|
|
|
${OGRE_Overlay_LIBRARIES}
|
2014-06-02 07:34:43 +00:00
|
|
|
${OGRE_STATIC_PLUGINS}
|
2014-03-16 11:44:01 +00:00
|
|
|
${SHINY_LIBRARIES}
|
2012-11-21 16:31:18 +00:00
|
|
|
${Boost_LIBRARIES}
|
2014-10-17 19:16:48 +00:00
|
|
|
${BULLET_LIBRARIES}
|
2012-11-21 16:31:18 +00:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
components
|
2013-02-17 13:46:50 +00:00
|
|
|
)
|
2013-11-07 22:05:45 +00:00
|
|
|
|
2013-11-10 18:04:13 +00:00
|
|
|
if(APPLE)
|
|
|
|
INSTALL(TARGETS opencs BUNDLE DESTINATION OpenMW COMPONENT BUNDLE)
|
2013-11-10 18:24:31 +00:00
|
|
|
endif()
|