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