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