@ -13,52 +13,43 @@ link_directories()
# # # # # styles ( static )
set ( target styles )
set ( _SRC_ qcdestyle.cpp
q c o m m o n s t y l e . c p p
q c o m p a c t s t y l e . c p p
q i n t e r l a c e s t y l e . c p p
q m o t i f p l u s s t y l e . c p p
q m o t i f s t y l e . c p p
q p l a t i n u m s t y l e . c p p
q s g i s t y l e . c p p
q s t y l e f a c t o r y . c p p
set ( _SRC_ qcommonstyle.cpp
q s t y l e p l u g i n . c p p
q wi n d o w s s t y l e . c p p
q s t y l e f a c t o r y . c p p
)
set ( _disabled_styles "" )
list ( APPEND _disabled_styles
set ( _STYLE_MOTIF_SRC_ qmotifstyle.cpp )
set ( _STYLE_WINDOWS_SRC_ qwindowsstyle.cpp )
set ( _STYLE_CDE_SRC_ qcdestyle.cpp )
set ( _STYLE_MOTIFPLUS_SRC_ qmotifplusstyle.cpp )
set ( _STYLE_SGI_SRC_ qsgistyle.cpp )
set ( _STYLE_COMPACT_SRC_ qcompactstyle.cpp )
set ( _STYLE_INTERLACE_SRC_ qinterlacestyle.cpp )
set ( _STYLE_PLATINUM_SRC_ qplatinumstyle.cpp )
# c h e c k s t y l e d e p e n d e n c i e s
tqt_requires ( WITH_STYLE_CDE WITH_STYLE_MOTIF )
tqt_requires ( WITH_STYLE_MOTIFPLUS WITH_STYLE_MOTIF )
tqt_requires ( WITH_STYLE_SGI WITH_STYLE_MOTIF )
tqt_requires ( WITH_STYLE_INTERLACE WITH_STYLE_WINDOWS )
tqt_requires ( WITH_STYLE_PLATINUM WITH_STYLE_WINDOWS )
tqt_requires ( WITH_STYLE_COMPACT WITH_STYLE_WINDOWS )
# s t y l e s u n s u p p o r t e d o n X 1 1
set ( _disabled_styles
T Q T _ N O _ S T Y L E _ W I N D O W S X P
T Q T _ N O _ S T Y L E _ A Q U A
T Q T _ N O _ S T Y L E _ P O C K E T P C
T Q T _ N O _ S T Y L E _ M A C
)
if ( WITH_STYLE_WINDOWS )
if ( NOT WITH_STYLE_INTERLACE )
list ( APPEND _disabled_styles TQT_NO_STYLE_INTERLACE )
endif ( )
if ( NOT WITH_STYLE_PLATINIUM )
list ( APPEND _disabled_styles TQT_NO_STYLE_PLATINUM )
endif ( )
else ( )
tde_message_fatal ( "Windows style is required for this build" )
endif ( WITH_STYLE_WINDOWS )
if ( WITH_STYLE_MOTIF )
if ( NOT WITH_STYLE_SGI )
list ( APPEND _disabled_styles TQT_NO_STYLE_SGI )
endif ( )
if ( NOT WITH_STYLE_MOTIFPLUS )
list ( APPEND _disabled_styles TQT_NO_STYLE_MOTIFPLUS )
endif ( )
if ( NOT WITH_STYLE_CDE )
list ( APPEND _disabled_styles TQT_NO_STYLE_CDE )
endif ( )
else ( )
tde_message_fatal ( "Motif style is required for this build" )
endif ( WITH_STYLE_MOTIF )
foreach ( _style MOTIF WINDOWS CDE MOTIFPLUS SGI COMPACT INTERLACE PLATINUM )
if ( WITH_STYLE_ ${ _style } )
list ( APPEND _SRC_ "${_STYLE_${_style}_SRC_}" )
else ( )
list ( APPEND _disabled_styles "TQT_NO_STYLE_${_style}" )
endif ( )
endforeach ( )
tde_add_library ( ${ target } STATIC_PIC