1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00
OpenMW/apps/opencs/CMakeLists.txt

216 lines
5.1 KiB
CMake
Raw Normal View History

2014-09-05 20:30:50 +10:00
set (OPENCS_SRC main.cpp
${CMAKE_SOURCE_DIR}/files/windows/opencs.rc
2014-09-05 20:30:50 +10:00
)
2012-11-21 17:31:18 +01:00
opencs_units (. editor)
2012-11-22 13:30:02 +01:00
2013-05-07 20:33:42 -05:00
set (CMAKE_BUILD_TYPE DEBUG)
2012-11-24 11:01:53 +01:00
opencs_units (model/doc
2014-09-02 10:21:17 +02:00
document operation saving documentmanager loader runner
)
opencs_units_noqt (model/doc
stage savingstate savingstages blacklist messages
)
opencs_hdrs_noqt (model/doc
state
)
2012-12-11 15:35:47 +01:00
opencs_units (model/world
2014-07-05 15:50:47 +02:00
idtable idtableproxymodel regionmap data commanddispatcher idtablebase resourcetable
2012-11-21 17:31:18 +01:00
)
2012-11-22 13:30:02 +01:00
opencs_units_noqt (model/world
universalid record commands columnbase scriptcontext cell refidcollection
refidadapter refiddata refidadapterimp ref collectionbase refcollection columns infocollection tablemimedata cellcoordinates cellselection resources resourcesmanager scope
pathgrid landtexture land
)
2012-11-22 13:30:02 +01:00
opencs_hdrs_noqt (model/world
columnimp idcollection collection info subcellcollection
2012-11-21 17:31:18 +01:00
)
2012-11-24 11:01:53 +01:00
opencs_units (model/tools
tools reportmodel
)
2012-11-22 13:30:02 +01:00
opencs_units_noqt (model/tools
mandatoryid skillcheck classcheck factioncheck racecheck soundcheck regioncheck
birthsigncheck spellcheck referenceablecheck scriptcheck bodypartcheck
)
2012-11-24 11:01:53 +01:00
opencs_units (view/doc
viewmanager view operations operation subview startup filedialog newgame
2014-09-05 13:49:34 +02:00
filewidget adjusterwidget loader globaldebugprofilemenu runlogsubview
)
2012-12-11 15:35:47 +01:00
opencs_units_noqt (view/doc
subviewfactory
2012-11-21 17:31:18 +01:00
)
opencs_hdrs_noqt (view/doc
subviewfactoryimp
2012-11-21 17:31:18 +01:00
)
opencs_units (view/world
2013-07-26 21:09:23 +02:00
table tablesubview scriptsubview util regionmapsubview tablebottombox creator genericcreator
cellcreator referenceablecreator referencecreator scenesubview
infocreator scriptedit dialoguesubview previewsubview regionmap dragrecordtable
)
opencs_units_noqt (view/world
subviews enumdelegate vartypedelegate recordstatusdelegate idtypedelegate datadisplaydelegate
scripthighlighter idvalidator dialoguecreator physicssystem
)
opencs_units (view/widget
scenetoolbar scenetool scenetoolmode pushbutton scenetooltoggle scenetoolrun modebutton
2014-11-28 09:14:02 +01:00
scenetooltoggle2
)
2013-11-02 02:48:30 +01:00
opencs_units (view/render
scenewidget worldspacewidget pagedworldspacewidget unpagedworldspacewidget
previewwidget editmode
2014-02-27 14:46:06 +01:00
)
opencs_units_noqt (view/render
2014-03-26 17:59:42 +01:00
navigation navigation1st navigationfree navigationorbit lighting lightingday lightingnight
lightingbright object cell terrainstorage textoverlay overlaymask overlaysystem mousestate
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
)
opencs_units (view/tools
2014-12-06 13:01:55 +01:00
reportsubview reporttable
)
opencs_units_noqt (view/tools
subviews
)
opencs_units (view/settings
settingwindow
dialog
page
view
booleanview
textview
listview
2014-04-26 09:40:58 -05:00
rangeview
resizeablestackedwidget
spinbox
)
opencs_units_noqt (view/settings
frame
2013-05-07 20:33:42 -05:00
)
opencs_units (model/settings
usersettings
setting
connector
)
opencs_hdrs_noqt (model/settings
2013-05-07 20:33:42 -05:00
support
)
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
filterbox recordfilterbox editwidget
2013-08-08 15:55:23 +02:00
)
2012-11-21 17:31:18 +01:00
set (OPENCS_US
)
set (OPENCS_RES ${CMAKE_SOURCE_DIR}/files/opencs/resources.qrc
${CMAKE_SOURCE_DIR}/files/launcher/launcher.qrc
)
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)
2014-05-22 15:42:47 +04:00
set(BOOST_COMPONENTS system filesystem program_options thread wave)
if(WIN32)
set(BOOST_COMPONENTS ${BOOST_COMPONENTS} locale)
endif(WIN32)
2014-03-16 12:44:01 +01:00
find_package(Boost REQUIRED COMPONENTS ${BOOST_COMPONENTS})
2013-12-29 16:25:49 -05:00
find_package(Qt4 COMPONENTS QtCore QtGui QtNetwork REQUIRED)
2012-11-21 17:31:18 +01:00
include(${QT_USE_FILE})
qt4_wrap_ui(OPENCS_UI_HDR ${OPENCS_UI})
qt4_wrap_cpp(OPENCS_MOC_SRC ${OPENCS_HDR_QT})
2012-11-21 17:31:18 +01:00
qt4_add_resources(OPENCS_RES_SRC ${OPENCS_RES})
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${BULLET_INCLUDE_DIRS})
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
${OENGINE_BULLET}
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}
)
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
2014-03-16 12:44:01 +01:00
${OGRE_LIBRARIES}
2014-10-04 05:48:56 +10:00
${OGRE_Overlay_LIBRARIES}
${OGRE_STATIC_PLUGINS}
2014-03-16 12:44:01 +01:00
${SHINY_LIBRARIES}
2012-11-21 17:31:18 +01:00
${Boost_LIBRARIES}
${BULLET_LIBRARIES}
2012-11-21 17:31:18 +01:00
${QT_LIBRARIES}
components
2013-02-17 07:46:50 -06:00
)
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()