author | displacer |
Sun, 20 Aug 2006 17:18:53 +0000 | |
changeset 121 | 6c7111eddea9 |
parent 119 | 665c07365cb6 |
child 127 | ca70467bd0a8 |
permissions | -rw-r--r-- |
73 | 1 |
find_package(Qt4 REQUIRED) |
2 |
||
3 |
include_directories(${QT_INCLUDES} .) |
|
4 |
||
119 | 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 |
||
73 | 14 |
set(hwfr_src |
15 |
game.cpp |
|
16 |
main.cpp |
|
17 |
hwform.cpp |
|
18 |
team.cpp |
|
19 |
rndstr.cpp |
|
20 |
sha1.cpp |
|
21 |
netclient.cpp |
|
22 |
teamselect.cpp |
|
23 |
teamselhelper.cpp |
|
24 |
frameTeam.cpp |
|
84 | 25 |
vertScrollArea.cpp |
85
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
84
diff
changeset
|
26 |
gameuiconfig.cpp |
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
84
diff
changeset
|
27 |
ui_hwform.cpp |
89 | 28 |
gamecfgwidget.cpp |
93 | 29 |
pages.cpp |
30 |
SquareLabel.cpp) |
|
73 | 31 |
|
32 |
if (WIN32) |
|
33 |
set(hwfr_src ${hwfr_src} res/hedgewars.rc) |
|
34 |
endif (WIN32) |
|
35 |
||
36 |
set(hwfr_moc_hdrs |
|
37 |
game.h |
|
38 |
hwform.h |
|
39 |
netclient.h |
|
40 |
teamselect.h |
|
41 |
teamselhelper.h |
|
42 |
frameTeam.h |
|
84 | 43 |
vertScrollArea.h |
85
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
84
diff
changeset
|
44 |
gameuiconfig.h |
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
84
diff
changeset
|
45 |
ui_hwform.h |
86
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
46 |
gamecfgwidget.h |
89 | 47 |
predefteams.h |
93 | 48 |
pages.h |
49 |
SquareLabel.h) |
|
73 | 50 |
|
51 |
||
52 |
set(hwfr_rez |
|
53 |
hedgewars.qrc) |
|
54 |
||
55 |
qt4_add_resources(hwfr_rez_src |
|
56 |
${hwfr_rez}) |
|
57 |
||
58 |
qt4_wrap_cpp(hwfr_moc_srcs |
|
59 |
${hwfr_moc_hdrs}) |
|
60 |
||
61 |
add_executable(hedgewars WIN32 |
|
62 |
${hwfr_src} |
|
63 |
${hwfr_moc_srcs} |
|
64 |
${hwfr_rez_src}) |
|
65 |
||
66 |
target_link_libraries(hedgewars |
|
67 |
${QT_QTCORE_LIBRARY} |
|
68 |
${QT_QTGUI_LIBRARY} |
|
69 |
${QT_QTNETWORK_LIBRARY} |
|
70 |
${QT_QTMAIN_LIBRARY}) |
|
71 |
||
89 | 72 |
install(PROGRAMS "hedgewars${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION bin) |
99 | 73 |
|
74 |
||
75 |
if(WIN32 AND NOT UNIX) |
|
76 |
string(REPLACE "\\" "/" QT_BIN_DIR $ENV{QTDIR}/bin) |
|
77 |
||
78 |
install(FILES |
|
79 |
"${QT_BIN_DIR}/QtNetwork4.dll" |
|
80 |
"${QT_BIN_DIR}/QtGui4.dll" |
|
81 |
"${QT_BIN_DIR}/QtCore4.dll" |
|
82 |
"${QT_BIN_DIR}/mingwm10.dll" |
|
83 |
DESTINATION bin) |
|
84 |
endif(WIN32 AND NOT UNIX) |