Remove redundant qt-related cmake macros

pull/3121/head
Pi03k 3 years ago
parent f62adab43a
commit 4ff5a04e9b

@ -8,11 +8,11 @@ opencs_units (model/doc
document operation saving documentmanager loader runner operationholder document operation saving documentmanager loader runner operationholder
) )
opencs_units_noqt (model/doc opencs_units (model/doc
stage savingstate savingstages blacklist messages stage savingstate savingstages blacklist messages
) )
opencs_hdrs_noqt (model/doc opencs_hdrs (model/doc
state state
) )
@ -23,14 +23,14 @@ opencs_units (model/world
) )
opencs_units_noqt (model/world opencs_units (model/world
universalid record commands columnbase columnimp scriptcontext cell refidcollection universalid record commands columnbase columnimp scriptcontext cell refidcollection
refidadapter refiddata refidadapterimp ref collectionbase refcollection columns infocollection tablemimedata cellcoordinates cellselection resources resourcesmanager scope refidadapter refiddata refidadapterimp ref collectionbase refcollection columns infocollection tablemimedata cellcoordinates cellselection resources resourcesmanager scope
pathgrid landtexture land nestedtablewrapper nestedcollection nestedcoladapterimp nestedinfocollection pathgrid landtexture land nestedtablewrapper nestedcollection nestedcoladapterimp nestedinfocollection
idcompletionmanager metadata defaultgmsts infoselectwrapper commandmacro idcompletionmanager metadata defaultgmsts infoselectwrapper commandmacro
) )
opencs_hdrs_noqt (model/world opencs_hdrs (model/world
columnimp idcollection collection info subcellcollection columnimp idcollection collection info subcellcollection
) )
@ -39,14 +39,14 @@ opencs_units (model/tools
tools reportmodel mergeoperation tools reportmodel mergeoperation
) )
opencs_units_noqt (model/tools opencs_units (model/tools
mandatoryid skillcheck classcheck factioncheck racecheck soundcheck regioncheck mandatoryid skillcheck classcheck factioncheck racecheck soundcheck regioncheck
birthsigncheck spellcheck referencecheck referenceablecheck scriptcheck bodypartcheck birthsigncheck spellcheck referencecheck referenceablecheck scriptcheck bodypartcheck
startscriptcheck search searchoperation searchstage pathgridcheck soundgencheck magiceffectcheck startscriptcheck search searchoperation searchstage pathgridcheck soundgencheck magiceffectcheck
mergestages gmstcheck topicinfocheck journalcheck enchantmentcheck mergestages gmstcheck topicinfocheck journalcheck enchantmentcheck
) )
opencs_hdrs_noqt (model/tools opencs_hdrs (model/tools
mergestate mergestate
) )
@ -57,11 +57,11 @@ opencs_units (view/doc
) )
opencs_units_noqt (view/doc opencs_units (view/doc
subviewfactory subviewfactory
) )
opencs_hdrs_noqt (view/doc opencs_hdrs (view/doc
subviewfactoryimp subviewfactoryimp
) )
@ -74,7 +74,7 @@ opencs_units (view/world
bodypartcreator landtexturecreator landcreator bodypartcreator landtexturecreator landcreator
) )
opencs_units_noqt (view/world opencs_units (view/world
subviews enumdelegate vartypedelegate recordstatusdelegate idtypedelegate datadisplaydelegate subviews enumdelegate vartypedelegate recordstatusdelegate idtypedelegate datadisplaydelegate
scripthighlighter idvalidator dialoguecreator idcompletiondelegate scripthighlighter idvalidator dialoguecreator idcompletiondelegate
colordelegate dragdroputils colordelegate dragdroputils
@ -92,12 +92,12 @@ opencs_units (view/render
cellwater terraintexturemode actor terrainselection terrainshapemode brushdraw commands cellwater terraintexturemode actor terrainselection terrainshapemode brushdraw commands
) )
opencs_units_noqt (view/render opencs_units (view/render
lighting lightingday lightingnight lightingbright object cell terrainstorage tagbase lighting lightingday lightingnight lightingbright object cell terrainstorage tagbase
cellarrow cellmarker cellborder pathgrid cellarrow cellmarker cellborder pathgrid
) )
opencs_hdrs_noqt (view/render opencs_hdrs (view/render
mask mask
) )
@ -106,7 +106,7 @@ opencs_units (view/tools
reportsubview reporttable searchsubview searchbox merge reportsubview reporttable searchsubview searchbox merge
) )
opencs_units_noqt (view/tools opencs_units (view/tools
subviews subviews
) )
@ -119,11 +119,11 @@ opencs_units (model/prefs
shortcuteventhandler shortcutmanager shortcutsetting modifiersetting stringsetting shortcuteventhandler shortcutmanager shortcutsetting modifiersetting stringsetting
) )
opencs_units_noqt (model/prefs opencs_units (model/prefs
category category
) )
opencs_units_noqt (model/filter opencs_units (model/filter
node unarynode narynode leafnode booleannode parser andnode ornode notnode textnode valuenode node unarynode narynode leafnode booleannode parser andnode ornode notnode textnode valuenode
) )

@ -93,42 +93,21 @@ add_file (${project} _HDR ${comp} "${dir}/${unit}.hpp")
add_file (${project} _SRC ${comp} "${dir}/${unit}.cpp") add_file (${project} _SRC ${comp} "${dir}/${unit}.cpp")
endmacro (add_unit) endmacro (add_unit)
macro (add_qt_unit project dir unit)
add_file (${project} _HDR ${comp} "${dir}/${unit}.hpp")
add_file (${project} _SRC ${comp} "${dir}/${unit}.cpp")
endmacro (add_qt_unit)
macro (add_hdr project dir unit) macro (add_hdr project dir unit)
add_file (${project} _HDR ${comp} "${dir}/${unit}.hpp") add_file (${project} _HDR ${comp} "${dir}/${unit}.hpp")
endmacro (add_hdr) endmacro (add_hdr)
macro (add_qt_hdr project dir unit)
add_file (${project} _HDR ${comp} "${dir}/${unit}.hpp")
endmacro (add_qt_hdr)
macro (opencs_units dir) macro (opencs_units dir)
foreach (u ${ARGN}) foreach (u ${ARGN})
add_qt_unit (OPENCS ${dir} ${u})
endforeach (u)
endmacro (opencs_units)
macro (opencs_units_noqt dir)
foreach (u ${ARGN})
add_unit (OPENCS ${dir} ${u}) add_unit (OPENCS ${dir} ${u})
endforeach (u) endforeach (u)
endmacro (opencs_units_noqt) endmacro (opencs_units)
macro (opencs_hdrs dir) macro (opencs_hdrs dir)
foreach (u ${ARGN}) foreach (u ${ARGN})
add_qt_hdr (OPENCS ${dir} ${u})
endforeach (u)
endmacro (opencs_hdrs)
macro (opencs_hdrs_noqt dir)
foreach (u ${ARGN})
add_hdr (OPENCS ${dir} ${u}) add_hdr (OPENCS ${dir} ${u})
endforeach (u) endforeach (u)
endmacro (opencs_hdrs_noqt) endmacro (opencs_hdrs)
include(CMakeParseArguments) include(CMakeParseArguments)

Loading…
Cancel
Save