author | displacer |
Tue, 26 Sep 2006 19:45:47 +0000 | |
changeset 169 | a78d4a552500 |
parent 165 | 9b9144948668 |
child 177 | c67c15e6fae3 |
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 |
netclient.cpp |
|
20 |
teamselect.cpp |
|
21 |
teamselhelper.cpp |
|
22 |
frameTeam.cpp |
|
84 | 23 |
vertScrollArea.cpp |
85
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
84
diff
changeset
|
24 |
gameuiconfig.cpp |
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
84
diff
changeset
|
25 |
ui_hwform.cpp |
89 | 26 |
gamecfgwidget.cpp |
93 | 27 |
pages.cpp |
133 | 28 |
SquareLabel.cpp |
164 | 29 |
hedgehogerWidget.cpp |
30 |
hwmap.cpp |
|
31 |
mapContainer.cpp) |
|
73 | 32 |
|
33 |
if (WIN32) |
|
34 |
set(hwfr_src ${hwfr_src} res/hedgewars.rc) |
|
35 |
endif (WIN32) |
|
36 |
||
37 |
set(hwfr_moc_hdrs |
|
38 |
game.h |
|
39 |
hwform.h |
|
165 | 40 |
binds.h |
73 | 41 |
netclient.h |
42 |
teamselect.h |
|
43 |
teamselhelper.h |
|
44 |
frameTeam.h |
|
84 | 45 |
vertScrollArea.h |
85
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
84
diff
changeset
|
46 |
gameuiconfig.h |
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
84
diff
changeset
|
47 |
ui_hwform.h |
86
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
48 |
gamecfgwidget.h |
89 | 49 |
predefteams.h |
93 | 50 |
pages.h |
133 | 51 |
SquareLabel.h |
164 | 52 |
hedgehogerWidget.h |
53 |
hwmap.h |
|
54 |
mapContainer.h) |
|
73 | 55 |
|
56 |
||
57 |
set(hwfr_rez |
|
58 |
hedgewars.qrc) |
|
59 |
||
60 |
qt4_add_resources(hwfr_rez_src |
|
61 |
${hwfr_rez}) |
|
62 |
||
63 |
qt4_wrap_cpp(hwfr_moc_srcs |
|
64 |
${hwfr_moc_hdrs}) |
|
65 |
||
66 |
add_executable(hedgewars WIN32 |
|
67 |
${hwfr_src} |
|
68 |
${hwfr_moc_srcs} |
|
69 |
${hwfr_rez_src}) |
|
70 |
||
71 |
target_link_libraries(hedgewars |
|
72 |
${QT_QTCORE_LIBRARY} |
|
73 |
${QT_QTGUI_LIBRARY} |
|
74 |
${QT_QTNETWORK_LIBRARY} |
|
75 |
${QT_QTMAIN_LIBRARY}) |
|
76 |
||
89 | 77 |
install(PROGRAMS "hedgewars${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION bin) |
99 | 78 |
|
79 |
||
80 |
if(WIN32 AND NOT UNIX) |
|
81 |
string(REPLACE "\\" "/" QT_BIN_DIR $ENV{QTDIR}/bin) |
|
82 |
||
83 |
install(FILES |
|
84 |
"${QT_BIN_DIR}/QtNetwork4.dll" |
|
85 |
"${QT_BIN_DIR}/QtGui4.dll" |
|
86 |
"${QT_BIN_DIR}/QtCore4.dll" |
|
87 |
"${QT_BIN_DIR}/mingwm10.dll" |
|
88 |
DESTINATION bin) |
|
89 |
endif(WIN32 AND NOT UNIX) |