blob: bee32d5ac7e09fd3cadddeade48428b5e5e417cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}/include
${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64
${CMAKE_SOURCE_DIR}/src/kernel
)
link_directories()
##### styles (static)
set( target styles )
set( _SRC_ qcdestyle.cpp
qcommonstyle.cpp
qcompactstyle.cpp
qinterlacestyle.cpp
qmotifplusstyle.cpp
qmotifstyle.cpp
qplatinumstyle.cpp
qsgistyle.cpp
qstylefactory.cpp
qstyleplugin.cpp
qwindowsstyle.cpp
)
set( _disabled_styles "" )
list( APPEND _disabled_styles
TQT_NO_STYLE_WINDOWSXP
TQT_NO_STYLE_AQUA
TQT_NO_STYLE_POCKETPC
TQT_NO_STYLE_MAC
)
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 )
tde_add_library( ${target} STATIC_PIC
SOURCES
${_SRC_}
DEPENDENCIES
tqt-includes
)
tqt_automoc( ${target}-static )
list( APPEND tqtlib_embed ${target}-static )
set( tqtlib_embed ${tqtlib_embed} PARENT_SCOPE )
set_property(
TARGET ${target}-static
APPEND PROPERTY COMPILE_DEFINITIONS ${_disabled_styles}
)
|