author | unc0rr |
Tue, 21 Nov 2006 17:44:02 +0000 | |
changeset 260 | 2208405af6c6 |
parent 241 | cae2924bb1ab |
child 261 | 21b03fe1cc28 |
permissions | -rw-r--r-- |
260 | 1 |
set(QT_MIN_VERSION "4.2.0") |
2 |
||
184 | 3 |
find_package(Qt4 REQUIRED) |
4 |
||
5 |
include_directories(${QT_INCLUDES} .) |
|
6 |
||
7 |
if(WIN32 AND NOT UNIX) |
|
8 |
set(HEDGEWARS_BINDIR ".") |
|
9 |
else(WIN32 AND NOT UNIX) |
|
10 |
set(HEDGEWARS_BINDIR ${CMAKE_INSTALL_PREFIX}) |
|
11 |
endif(WIN32 AND NOT UNIX) |
|
12 |
||
13 |
configure_file(${hedgewars_SOURCE_DIR}/QTfrontend/main.cpp.in |
|
14 |
${hedgewars_SOURCE_DIR}/QTfrontend/main.cpp) |
|
15 |
||
16 |
set(hwfr_src |
|
17 |
game.cpp |
|
18 |
main.cpp |
|
19 |
hwform.cpp |
|
20 |
team.cpp |
|
21 |
netclient.cpp |
|
22 |
teamselect.cpp |
|
23 |
teamselhelper.cpp |
|
24 |
frameTeam.cpp |
|
25 |
vertScrollArea.cpp |
|
26 |
gameuiconfig.cpp |
|
27 |
ui_hwform.cpp |
|
28 |
gamecfgwidget.cpp |
|
29 |
pages.cpp |
|
30 |
SquareLabel.cpp |
|
31 |
hedgehogerWidget.cpp |
|
32 |
hwmap.cpp |
|
33 |
mapContainer.cpp |
|
187 | 34 |
tcpBase.cpp |
239 | 35 |
about.cpp |
36 |
proto.cpp) |
|
184 | 37 |
|
38 |
if (WIN32) |
|
39 |
set(hwfr_src ${hwfr_src} res/hedgewars.rc) |
|
40 |
endif (WIN32) |
|
41 |
||
42 |
set(hwfr_moc_hdrs |
|
43 |
game.h |
|
44 |
hwform.h |
|
45 |
binds.h |
|
46 |
netclient.h |
|
47 |
teamselect.h |
|
48 |
teamselhelper.h |
|
49 |
frameTeam.h |
|
50 |
vertScrollArea.h |
|
51 |
gameuiconfig.h |
|
52 |
ui_hwform.h |
|
53 |
gamecfgwidget.h |
|
54 |
predefteams.h |
|
55 |
pages.h |
|
56 |
SquareLabel.h |
|
57 |
hedgehogerWidget.h |
|
58 |
hwmap.h |
|
59 |
mapContainer.h |
|
187 | 60 |
tcpBase.h |
208 | 61 |
about.h |
239 | 62 |
KB.h |
63 |
proto.h) |
|
184 | 64 |
|
65 |
||
66 |
set(hwfr_rez |
|
67 |
hedgewars.qrc) |
|
68 |
||
69 |
qt4_add_resources(hwfr_rez_src |
|
70 |
${hwfr_rez}) |
|
71 |
||
72 |
qt4_wrap_cpp(hwfr_moc_srcs |
|
73 |
${hwfr_moc_hdrs}) |
|
74 |
||
75 |
add_executable(hedgewars WIN32 |
|
76 |
${hwfr_src} |
|
77 |
${hwfr_moc_srcs} |
|
78 |
${hwfr_rez_src}) |
|
79 |
||
80 |
target_link_libraries(hedgewars |
|
81 |
${QT_QTCORE_LIBRARY} |
|
82 |
${QT_QTGUI_LIBRARY} |
|
83 |
${QT_QTNETWORK_LIBRARY} |
|
222 | 84 |
${QT_QTSVG_LIBRARY} |
184 | 85 |
${QT_QTMAIN_LIBRARY}) |
86 |
||
224 | 87 |
install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/hedgewars${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION bin) |
184 | 88 |
|
89 |
||
90 |
if(WIN32 AND NOT UNIX) |
|
91 |
string(REPLACE "\\" "/" QT_BIN_DIR $ENV{QTDIR}/bin) |
|
92 |
||
93 |
install(FILES |
|
94 |
"${QT_BIN_DIR}/QtNetwork4.dll" |
|
95 |
"${QT_BIN_DIR}/QtGui4.dll" |
|
96 |
"${QT_BIN_DIR}/QtCore4.dll" |
|
223 | 97 |
"${QT_BIN_DIR}/QtSvg4.dll" |
241
cae2924bb1ab
Add QtXml4.dll to packing list, as it needed for QtSvg4.dll
unc0rr
parents:
239
diff
changeset
|
98 |
"${QT_BIN_DIR}/QtXml4.dll" |
184 | 99 |
"${QT_BIN_DIR}/mingwm10.dll" |
100 |
DESTINATION bin) |
|
101 |
endif(WIN32 AND NOT UNIX) |