author | unc0rr |
Fri, 15 Sep 2006 20:38:25 +0000 | |
changeset 148 | c0355acf07c8 |
parent 133 | c79cb5e5b24a |
child 164 | 92cff18a3ab6 |
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 |
29 |
hedgehogerWidget.cpp) |
|
73 | 30 |
|
31 |
if (WIN32) |
|
32 |
set(hwfr_src ${hwfr_src} res/hedgewars.rc) |
|
33 |
endif (WIN32) |
|
34 |
||
35 |
set(hwfr_moc_hdrs |
|
36 |
game.h |
|
37 |
hwform.h |
|
38 |
netclient.h |
|
39 |
teamselect.h |
|
40 |
teamselhelper.h |
|
41 |
frameTeam.h |
|
84 | 42 |
vertScrollArea.h |
85
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
84
diff
changeset
|
43 |
gameuiconfig.h |
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
84
diff
changeset
|
44 |
ui_hwform.h |
86
664b536a1c27
Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents:
85
diff
changeset
|
45 |
gamecfgwidget.h |
89 | 46 |
predefteams.h |
93 | 47 |
pages.h |
133 | 48 |
SquareLabel.h |
49 |
hedgehogerWidget.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) |