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